Files
common/docs/util-crypto/modules/_nacl_keypair_fromsecret_.md
T
2018-10-25 12:12:35 +00:00

916 B

Functions

naclKeypairFromSecret

▸ naclKeypairFromSecret(secret: Uint8Array): KeypairType

Defined in nacl/keypair/fromSecret.ts:24

name: naclKeypairFromSecret

signature: naclKeypairFromSecret (secret: Uint8Array): { secretKey: Uint8Array, publicKey: Uint8Array }

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:

Param Type
secret Uint8Array

Returns: KeypairType