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

    Returns

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

    Parameters

    • secret: Uint8Array

      The secret.

    Returns nacl.BoxKeyPair