916 B
916 B
Functions
naclKeypairFromSecret
▸ naclKeypairFromSecret(secret: Uint8Array): KeypairType
Defined in nacl/keypair/fromSecret.ts:24
name: naclKeypairFromSecret
signature: naclKeypairFromSecret (secret: Uint8Array): { secretKey: Uint8Array, publicKey: Uint8Array }
summary: Creates a new public/secret keypair from a secret.
description: Returns a object containing a publicKey & secretKey generated from the supplied secret.
example:
import { naclKeypairFromSecret } from '@polkadot/util-crypto';
naclKeypairFromSecret(...); // => { secretKey: [...], publicKey: [...] }
Parameters:
| Param | Type |
|---|---|
| secret | Uint8Array |
Returns: KeypairType