mnsig local key generation

node v8.17.0
version: 1.1.0
endpointsharetweet
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()
Loading…

no comments

    sign in to comment