Skip to content

naclBoxPairFromSecret

naclBoxPairFromSecret(secret): nacl.BoxKeyPair

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

Parameters

secret: Uint8Array

The secret.

Returns

nacl.BoxKeyPair

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

Source

utils/src/Crypto.ts:52