Created
September 16, 2014 00:26
-
-
Save JackTanRoo/558fd45e01d65d0a5570 to your computer and use it in GitHub Desktop.
How to generate new childKeys after generating a HDNode in Bitcoinjs?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bitcoin = require('bitcoinjs-lib'); | |
var BigInteger = require('bigi'); | |
var chainCode = new Buffer(32); //buffer of 32 bytes | |
// fill buffer with 1, do I increment .fill parameter up | |
// to generate new chaincodes? | |
chainCode.fill(1); | |
console.log("---------START-----------"); | |
var hd = new bitcoin.HDNode(d, chainCode, bitcoin.networks.testnet); | |
console.log("----------hd key------------- \n\n", hd); | |
// @Sida, now how do i generate childkeys from HDNode? |
sidazhang
commented
Sep 16, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment