Using private key for testing neuterization

To test removing private information, it's probably better to start with them :)
This commit is contained in:
Karel Bilek 2016-02-05 20:12:54 +01:00
parent fbcb478560
commit 3df2976e2c

View file

@ -240,7 +240,7 @@ describe('HDNode', function () {
var f = fixtures.valid[0] var f = fixtures.valid[0]
it('strips all private information', function () { it('strips all private information', function () {
var hd = HDNode.fromBase58(f.master.base58, NETWORKS_LIST) var hd = HDNode.fromBase58(f.master.base58Priv, NETWORKS_LIST)
var hdn = hd.neutered() var hdn = hd.neutered()
assert.strictEqual(hdn.keyPair.d, undefined) assert.strictEqual(hdn.keyPair.d, undefined)