mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-05-01 15:57:56 +00:00
17 lines
531 B
TypeScript
17 lines
531 B
TypeScript
import type { Keypair } from '../../types.js';
|
|
/**
|
|
* @name ed25519PairFromSeed
|
|
* @summary Creates a new public/secret keypair from a seed.
|
|
* @description
|
|
* Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { ed25519PairFromSeed } from '@pezkuwi/util-crypto';
|
|
*
|
|
* ed25519PairFromSeed(...); // => { secretKey: [...], publicKey: [...] }
|
|
* ```
|
|
*/
|
|
export declare function ed25519PairFromSeed(seed: Uint8Array, onlyJs?: boolean): Keypair;
|