class PublicKey
(source)
A Diffie-Helman public key.
fun bytes(): Bytes |
|
fun bytesArray(): ByteArray |
|
fun equals(other: Any?): Boolean |
|
static fun forBoxPublicKey(publicKey: PublicKey): PublicKey
Creates a new public key based on a signature public key. |
|
static fun forSignaturePublicKey(publicKey: PublicKey): PublicKey
Creates a new public key based on a signature public key. |
|
static fun fromBytes(bytes: Bytes): PublicKey static fun fromBytes(bytes: ByteArray): PublicKey
Create a PublicKey from an array of bytes. The byte array must be of length |
|
fun hashCode(): Int |
|
static fun length(): Int
Obtain the length of the key in bytes (32). |