CryptoBoxPublicKey

Public key used in `crypto_box` cryptography.

Constructors

Link copied to clipboard
open fun CryptoBoxPublicKey(data: Array<Byte>)
Create a `crypto_box` public key with the given block of data.

Functions

Link copied to clipboard
open fun data(): Array<Byte>
Returns the raw data of the given public-key.
Link copied to clipboard
open fun isValid(data: Array<Byte>): Boolean
Determines if the given public key is valid or not.