Files
common/docs/util-crypto/modules/_nacl_keypair_fromrandom_.md
T
2018-12-21 15:04:29 +00:00

804 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