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