class SecretKey : Destroyable
(source)
A Box secret key.
fun
Obtain the bytes of this key. WARNING: This will cause the key to be copied into heap memory. |
|
fun bytesArray(): ByteArray
Obtain the bytes of this key. WARNING: This will cause the key to be copied into heap memory. The returned array should be overwritten when no longer required. |
|
fun destroy(): Unit |
|
fun equals(other: Any?): Boolean |
|
static fun forSignatureSecretKey(secretKey: SecretKey): SecretKey
Transforms the Ed25519 secret key to a Curve25519 secret key. See https://libsodium.gitbook.io/doc/advanced/ed25519-curve25519 |
|
static fun fromBytes(bytes: Bytes): SecretKey static fun fromBytes(bytes: ByteArray): SecretKey
Create a SecretKey from an array of bytes. The byte array must be of length |
|
fun hashCode(): Int |
|
fun isDestroyed(): Boolean |
|
static fun length(): Int
Obtain the length of the key in bytes (32). |