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