Browse Source

add problematic test

patch-2
Manuel Araoz 11 years ago
parent
commit
5428b1109e
  1. 11
      test/test.HierarchicalKey.js

11
test/test.HierarchicalKey.js

@ -306,4 +306,15 @@ describe('HierarchicalKey', function() {
});
});
describe('derivation in linux', function() {
it('should not be non-deterministic', function(){
var hk = new HierarchicalKey('tprv8ZgxMBicQKsPdSF1avR6mXyDj5Uv1XY2UyUHSDpAXQ5TvPN7prGeDppjy4562rBB9gMMAhRfFdJrNDpQ4t69kkqHNEEen3PX1zBJqSehJDH');
console.log(hk.derive('m/45/0/0/0').extendedPrivateKeyString());
console.log(hk.derive('m/45/0/0/0').extendedPrivateKeyString());
console.log(hk.derive('m/45\'/0/0/0').extendedPrivateKeyString());
console.log(hk.derive('m/45\'/0/0/0').extendedPrivateKeyString());
hk.derive('m/45\'/0/0/0').extendedPrivateKeyString().should.equal(hk.derive('m/45\'/0/0/0').extendedPrivateKeyString());
});
});
});

Loading…
Cancel
Save