Files
common/docs/util-crypto/modules/_nacl_keypair_fromstring_.md
T
2018-12-20 09:58:06 +00:00

1010 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