DatabaseEncryptionKey

class DatabaseEncryptionKey(val keyId: String, material: ByteArray)

Raw key material used to unlock one encrypted wallet database.

Constructors

Link copied to clipboard
constructor(keyId: String, material: ByteArray)

Properties

Link copied to clipboard

Stable identifier for the database key.

Link copied to clipboard

Raw SQLCipher key material.

Functions

Link copied to clipboard
operator fun component1(): String

Destructures the key identifier.

Link copied to clipboard
operator fun component2(): ByteArray

Destructures a defensive copy of the key material.

Link copied to clipboard
fun copy(keyId: String = this.keyId, material: ByteArray = this.material): DatabaseEncryptionKey

Returns a new key value with optional replacements.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares key identifiers and key bytes.

Link copied to clipboard
open override fun hashCode(): Int

Hashes the key identifier and key bytes.

Link copied to clipboard
open override fun toString(): String

Formats the key without exposing raw key material.