Files
common/docs/util-crypto/modules/_nacl_keypair_fromseed_.md
T
2018-12-17 19:12:02 +00:00

935 B

Functions

naclKeypairFromSeed

▸ naclKeypairFromSeed(seed: Uint8Array): KeypairType

Defined in nacl/keypair/fromSeed.ts:24

name: naclKeypairFromSeed

signature: naclKeypairFromSeed (seed: Uint8Array): { secretKey: Uint8Array, publicKey: Uint8Array }

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

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

example:

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

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

Parameters:

Name Type
seed Uint8Array

Returns: KeypairType