WalletCore
WalletCore
/
wallet.core.jni
/
CryptoBoxSecretKey
Crypto
Box
Secret
Key
class
CryptoBoxSecretKey
Secret key used in `crypto_box` cryptography.
Constructors
Functions
Constructors
Crypto
Box
Secret
Key
Link copied to clipboard
open
fun
CryptoBoxSecretKey
(
)
Create a random secret key.
Crypto
Box
Secret
Key
Link copied to clipboard
open
fun
CryptoBoxSecretKey
(
data
:
Array
<
Byte
>
)
Create a `crypto_box` secret key with the given block of data.
Functions
data
Link copied to clipboard
open
fun
data
(
)
:
Array
<
Byte
>
Returns the raw data of the given secret-key.
get
Public
Key
Link copied to clipboard
open
fun
getPublicKey
(
)
:
CryptoBoxPublicKey
Returns the public key associated with the given `key`.
is
Valid
Link copied to clipboard
open
fun
isValid
(
data
:
Array
<
Byte
>
)
:
Boolean
Determines if the given secret key is valid or not.