Browse Source

small cleanup

master
JP Richardson 11 years ago
parent
commit
42f447d42f
  1. 1
      CHANGELOG.md
  2. 3
      test/hdkey.test.js

1
CHANGELOG.md

@ -11,6 +11,7 @@ x.y.z / 2014-06-dd
- removed method `getFingerprint()`, added property `fingerprint`
- renamed `private` to `privateExtendedKey`
- renamed `public` to `publicExtendedKey`
- added method `fromExtendedKey()`
0.0.1 / 2014-05-29
------------------

3
test/hdkey.test.js

@ -23,9 +23,6 @@ describe('hdkey', function() {
var hdkey = HDKey.fromMasterSeed(new Buffer(f.seed, 'hex'))
var childkey = hdkey.derive(f.path)
if (encode(childkey.privateExtendedKey) == "xprvA2nrNbFZABcdryreWet9Ea4LvTJcGsqrMzxHx98MMrotbir7yrKCEXw7nadnHM8Dq38EGfSh6dqA9QWTyefMLEcBYJUuekgW4BYPJcr9E7j")
console.log(childkey.fingerprint.toString('16'))
assert.equal(encode(childkey.privateExtendedKey), f.private)
assert.equal(encode(childkey.publicExtendedKey), f.public)
})

Loading…
Cancel
Save