Skip to content

Commit

Permalink
fix: Clean unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Oct 4, 2023
1 parent 104a22a commit 3f777aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.iohk.atala.prism.apollo.secp256k1

import io.iohk.atala.prism.apollo.utils.KMMECPoint

expect class Secp256k1Lib constructor() {
fun createPublicKey(privateKey: ByteArray, compressed: Boolean): ByteArray
fun derivePrivateKey(privateKeyBytes: ByteArray, derivedPrivateKeyBytes: ByteArray): ByteArray?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import kotlin.js.ExperimentalJsExport
import kotlin.js.JsExport
import kotlin.js.JsName


@OptIn(ExperimentalJsExport::class)
@JsExport
interface KMMECSecp256k1PublicKeyCommonStaticInterface {
Expand All @@ -30,7 +29,7 @@ interface KMMECSecp256k1PublicKeyCommonStaticInterface {
"Encoded byte array's expected length is 33 (compressed) or 65 (uncompressed), but got ${encoded.size} bytes"
}

return if(encoded[0].toInt() != 0x04) {
return if (encoded[0].toInt() != 0x04) {
KMMECSecp256k1PublicKey(Secp256k1Lib().uncompressPublicKey(encoded))
} else {
KMMECSecp256k1PublicKey(encoded)
Expand Down

0 comments on commit 3f777aa

Please sign in to comment.