Generate a new key pair given a mnemonic and passphrase
The generated key pair
cryptoUtils.generateKeys('raw peace visual boil prefer rebel anchor right elegant side gossip enroll force salmon between', 'my_password_123') .then(({ mnemonic, passphrase, sk, pk, pkh }) => console.log(mnemonic, passphrase, sk, pk, pkh));// Or generate keys given an HD derivartion pathcryptoUtils.generateKeys('gym exact clown can answer hope sample mirror knife twenty powder super imitate lion churn almost shed chalk dust civil gadget pyramid helmet trade', undefined, 'm/44h/1729h/0h/0h') .then(({ mnemonic, passphrase, sk, pk, pkh }) => console.log(mnemonic, passphrase, sk, pk, pkh));
The mnemonic seed
Optional
The passphrase used to salt the seed
Derivation path if generating keys for an HD account
Generated using TypeDoc
Description
Generate a new key pair given a mnemonic and passphrase
Returns
The generated key pair
Example