Browse Source

fix bad test, bytes!=bits

patch-2
Gabe 11 years ago
parent
commit
a374b58271
  1. 2
      examples/HierarchicalKey.js

2
examples/HierarchicalKey.js

@ -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…
Cancel
Save