UNPKG

468 BTypeScriptView Raw
1import type { Keypair } from '../../types';
2/**
3 * @name ed25519PairFromRandom
4 * @summary Creates a new public/secret keypair.
5 * @description
6 * Returns a new generate object containing a `publicKey` & `secretKey`.
7 * @example
8 * <BR>
9 *
10 * ```javascript
11 * import { ed25519PairFromRandom } from '@polkadot/util-crypto';
12 *
13 * ed25519PairFromRandom(); // => { secretKey: [...], publicKey: [...] }
14 * ```
15 */
16export declare function ed25519PairFromRandom(): Keypair;