Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
curtis-h committed Jul 17, 2023
1 parent 1da5ec1 commit 69692ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ actual class KMMX25519KeyPair actual constructor(
actual val publicKey: KMMX25519PublicKey
) {
actual companion object : X25519KeyPairGeneration {
override fun generateX25519KeyPair(): KMMX25519KeyPair {
override fun generateKeyPair(): KMMX25519KeyPair {
val provider = BouncyCastleProvider()
val kpg = KeyPairGenerator.getInstance("X25519", provider)
kpg.initialize(XDHParameterSpec(XDHParameterSpec.X25519))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ package io.iohk.atala.prism.apollo.utils

@ExperimentalJsExport
@JsExport
actual class KMMX25519PrivateKey(private val raw: ByteArray) {
fun getEncoded(): ByteArray {
return raw
}
}
actual class KMMX25519PrivateKey(val raw: ByteArray)
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ package io.iohk.atala.prism.apollo.utils

@ExperimentalJsExport
@JsExport
actual class KMMX25519PublicKey(private val raw: ByteArray) {
fun getEncoded(): ByteArray {
return raw
}
}
actual class KMMX25519PublicKey(val raw: ByteArray)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ actual class KMMX25519KeyPair actual constructor(
actual val publicKey: KMMX25519PublicKey
) {
actual companion object : X25519KeyPairGeneration {
override fun generateX25519KeyPair(): KMMX25519KeyPair {
override fun generateKeyPair(): KMMX25519KeyPair {
val provider = BouncyCastleProvider()
val kpg = KeyPairGenerator.getInstance("X25519", provider)
kpg.initialize(XDHParameterSpec(XDHParameterSpec.X25519))
Expand Down

0 comments on commit 69692ae

Please sign in to comment.