756 B
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