naclBoxPairFromSecret
naclBoxPairFromSecret(
secret):nacl.BoxKeyPair
Creates a new public/secret box keypair from a secret.
Parameters
Section titled “Parameters”• secret: Uint8Array
The secret.
Returns
Section titled “Returns”nacl.BoxKeyPair
An object containing a box publicKey & secretKey generated from the supplied secret.