962 B
962 B
Functions
naclKeypairFromString
▸ naclKeypairFromString(value: string): KeypairType
Defined in nacl/keypair/fromString.ts:27
name: naclKeypairFromString
signature: naclKeypairFromString (value: string): { secretKey: Uint8Array, publicKey: Uint8Array }
summary: Creates a new public/secret keypair from a string.
description: Returns a object containing a publicKey & secretKey generated from the supplied string. The string is hashed and the value used as the input seed.
example:
import { naclKeypairFromString } from '@polkadot/util-crypto';
naclKeypairFromString('test'); // => { secretKey: [...], publicKey: [...] }
Parameters:
| Name | Type |
|---|---|
| value | string |
Returns: KeypairType