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

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;