Files
pezkuwi-common/packages/util-crypto/cjs/ed25519/pair/fromSecret.d.ts
T

17 lines
530 B
TypeScript

import type { Keypair } from '../../types.js';
/**
* @name ed25519PairFromSecret
* @summary Creates a new public/secret keypair from a secret.
* @description
* Returns a object containing a `publicKey` & `secretKey` generated from the supplied secret.
* @example
* <BR>
*
* ```javascript
* import { ed25519PairFromSecret } from '@pezkuwi/util-crypto';
*
* ed25519PairFromSecret(...); // => { secretKey: [...], publicKey: [...] }
* ```
*/
export declare function ed25519PairFromSecret(secretKey: Uint8Array): Keypair;