Functions

naclKeypairFromRandom

▸ naclKeypairFromRandom(): KeypairType

Defined in nacl/keypair/fromRandom.ts:23

name: naclKeypairFromRandom

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: [...] }
1
2
3

Returns: KeypairType


Last Updated: 2/27/2019, 1:37:39 PM