Files
common/docs/util-crypto/modules/_nacl_keypair_fromrandom_.md
T
2018-11-29 09:50:13 +00:00

756 B

Functions

naclKeypairFromRandom

▸ naclKeypairFromRandom(): KeypairType

Defined in nacl/keypair/fromRandom.ts:24

name: naclKeypairFromRandom

signature: naclKeypairFromRandom (): { secretKey: Uint8Array, publicKey: Uint8Array }

summary: Creates a new public/secret keypair.

description: Returns a new generate object containing a publicKey & secretKey.

example:

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

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

Returns: KeypairType