fix bad test, bytes!=bits
This commit is contained in:
parent
8e96d1439d
commit
a374b58271
@ -10,7 +10,7 @@ var run = function() {
|
||||
console.log('https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki\n');
|
||||
console.log('1) Make new hkey from randomly generated new seed');
|
||||
|
||||
var randomBytes = crypto.randomBytes(256);
|
||||
var randomBytes = crypto.randomBytes(32);
|
||||
var hkey = HierarchicalKey.seed(randomBytes);
|
||||
console.log('master extended private key: ' + hkey.extendedPrivateKeyString());
|
||||
console.log('master extended public key: ' + hkey.extendedPublicKeyString());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user