Migrates the pubkeyHex from keypair to the signer.

This commit is contained in:
Vitor Pamplona
2024-08-16 15:58:23 -04:00
parent 990db68a4d
commit 0bff3462b1
3 changed files with 13 additions and 15 deletions
@@ -20,7 +20,6 @@
*/
package com.vitorpamplona.quartz.crypto
import com.vitorpamplona.quartz.encoders.HexKey
import com.vitorpamplona.quartz.encoders.toHexKey
class KeyPair(
@@ -30,7 +29,6 @@ class KeyPair(
) {
val privKey: ByteArray?
val pubKey: ByteArray
val pubKeyHex: HexKey
init {
if (privKey == null) {
@@ -54,8 +52,6 @@ class KeyPair(
this.pubKey = pubKey
}
}
this.pubKeyHex = this.pubKey.toHexKey().intern()
}
override fun toString(): String = "KeyPair(privateKey=${privKey?.toHexKey()}, publicKey=${pubKey.toHexKey()}"