@ducatus/ducatuscore-mnemonic
v10.0.16
Published
BIP39 Mnemonics implemented for Ducatuscore.
Downloads
487
Readme
Ducatuscore Mnemonics
BIP39 Mnemonics for ducatuscore
A module for ducatuscore that implements Mnemonic code for generating deterministic keys.
Getting Started
This library is distributed in both the npm packaging systems.
npm install @ducatus/ducatuscore-lib #this to install ducatuscore-lib since it is a peerDependecy
npm install @ducatus/ducatuscore-mnemonic
There are many examples of how to use it on the developer guide section for mnemonic. For example, the following code would generate a new random mnemonic code and convert it to a HDPrivateKey
.
var Mnemonic = require('@ducatus/ducatuscore-mnemonic');
var code = new Mnemonic(Mnemonic.Words.SPANISH);
code.toString(); // natal hada sutil año sólido papel jamón combate aula flota ver esfera...
var xpriv = code.toHDPrivateKey();