828 B
828 B
Functions
naclKeypairFromSeed
▸ naclKeypairFromSeed(seed: Uint8Array): KeypairType
Defined in nacl/keypair/fromSeed.ts:23
name: naclKeypairFromSeed
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