mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-25 16:27:57 +00:00
17 lines
470 B
TypeScript
17 lines
470 B
TypeScript
import type { Keypair } from '../../types.js';
|
|
/**
|
|
* @name ed25519PairFromRandom
|
|
* @summary Creates a new public/secret keypair.
|
|
* @description
|
|
* Returns a new generate object containing a `publicKey` & `secretKey`.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { ed25519PairFromRandom } from '@pezkuwi/util-crypto';
|
|
*
|
|
* ed25519PairFromRandom(); // => { secretKey: [...], publicKey: [...] }
|
|
* ```
|
|
*/
|
|
export declare function ed25519PairFromRandom(): Keypair;
|