UNPKG

@plugnet/util-crypto

Version:
17 lines (16 loc) 462 B
import { Keypair } from '../../types'; /** * @name naclKeypairFromRandom * @summary Creates a new public/secret keypair. * @description * Returns a new generate object containing a `publicKey` & `secretKey`. * @example * <BR> * * ```javascript * import { naclKeypairFromRandom } from '@plugnet/util-crypto'; * * naclKeypairFromRandom(); // => { secretKey: [...], publicKey: [...] } * ``` */ export default function naclKeypairFromRandom(): Keypair;