Skip to content

naclBoxPairFromSecret

naclBoxPairFromSecret(secret): nacl.BoxKeyPair

Creates a new public/secret box keypair from a secret.

secret: Uint8Array

The secret.

nacl.BoxKeyPair

An object containing a box publicKey & secretKey generated from the supplied secret.

utils/src/Crypto.ts:52