fix warning equals but no hashcode

This commit is contained in:
valere 2023-04-07 14:09:56 +02:00
parent 4ecbf87cda
commit 70508544cd

View file

@ -27,6 +27,10 @@ class BackupRecoveryKey(private val key: ByteArray) : IBackupRecoveryKey {
return this.toBase58() == other.toBase58()
}
override fun hashCode(): Int {
return key.contentHashCode()
}
override fun toBase58() = computeRecoveryKey(key)
override fun toBase64() = key.toBase64NoPadding()