mnsig local key generation
const mnsig = require('mnsig-client');
const network = "testnet";
const password = "somepassword";
const result = mnsig.generateKey(password, "bip44", network);
console.log('xpub', result.xpub);
const xpriv = mnsig.decryptKey(password, result.xprivEnc, "bip44", network);
console.log('xpriv', xpriv.xprivkey);
// For the latest version of mnsig-client replace xpriv.xprivkey by xpriv.toBase58()
no comments