Using private key for testing neuterization
To test removing private information, it's probably better to start with them :)
This commit is contained in:
parent
fbcb478560
commit
3df2976e2c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue