fix bad test, bytes!=bits

This commit is contained in:
Gabe 2014-06-04 13:59:38 -04:00
parent 8e96d1439d
commit a374b58271

View File

@ -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());