Files
common/docs/util-crypto/modules/_nacl_keypair_fromsecret_.md
T
2019-02-19 15:11:49 +00:00

852 B

Functions

naclKeypairFromSecret

▸ naclKeypairFromSecret(secret: Uint8Array): KeypairType

Defined in nacl/keypair/fromSecret.ts:23

name: naclKeypairFromSecret

summary: Creates a new public/secret keypair from a secret.

description: Returns a object containing a publicKey & secretKey generated from the supplied secret.

example:

import { naclKeypairFromSecret } from '@polkadot/util-crypto';

naclKeypairFromSecret(...); // => { secretKey: [...], publicKey: [...] }

Parameters:

Name Type
secret Uint8Array

Returns: KeypairType