diff --git a/base-asymmetric-encryption/src/androidMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt b/base-asymmetric-encryption/src/androidMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt index 707133a4e..89f10828c 100644 --- a/base-asymmetric-encryption/src/androidMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt +++ b/base-asymmetric-encryption/src/androidMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt @@ -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)) diff --git a/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PrivateKey.kt b/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PrivateKey.kt index 8c62c8e03..28ee02f9f 100644 --- a/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PrivateKey.kt +++ b/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PrivateKey.kt @@ -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) diff --git a/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PublicKey.kt b/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PublicKey.kt index d471b2676..f2dbcbd4d 100644 --- a/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PublicKey.kt +++ b/base-asymmetric-encryption/src/jsMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519PublicKey.kt @@ -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) diff --git a/base-asymmetric-encryption/src/jvmMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt b/base-asymmetric-encryption/src/jvmMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt index 707133a4e..89f10828c 100644 --- a/base-asymmetric-encryption/src/jvmMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt +++ b/base-asymmetric-encryption/src/jvmMain/kotlin/io/iohk/atala/prism/apollo/utils/KMMX25519KeyPair.kt @@ -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))