852 B
852 B
Functions
naclKeypairFromSecret
▸ naclKeypairFromSecret(secret: Uint8Array): KeypairType
Defined in nacl/keypair/fromSecret.ts:23
name: naclKeypairFromSecret
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:
| Name | Type |
|---|---|
| secret | Uint8Array |
Returns: KeypairType