UNPKG

@ondemos/core

Version:

A cryptographic commitment scheme with implied order of ownership wasm module for nodejs and the browser.

14 lines 679 B
/** * Generates an Ed25519 key pair from the provided mnemonic. * Optionally, you can strenthen the generation with a password. * The mnemonic is converted into a seed through the use of argon2id. * The password is used as a salt for argon2id. * From the generated seed we extract the key pair. * * @param mnemonic - Sequence of words from the predefined wordlist * @param password - Optional salt for the seed derivation * @returns An Ed25519 key pair */ declare const keyPairFromMnemonic: (mnemonic: string, password?: string) => Promise<import("../utils/interfaces").SignKeyPair>; export default keyPairFromMnemonic; //# sourceMappingURL=keyPairFromMnemonic.d.ts.map