fixing
This commit is contained in:
parent
a57191c66f
commit
a15962da88
|
@ -150,8 +150,12 @@ HierarchicalKey.prototype.buildExtendedPublicKey = function() {
|
|||
r = r.put(this.chainCode);
|
||||
r = r.put(this.eckey.public);
|
||||
|
||||
this.extendedPublicKey = r.buffer();
|
||||
|
||||
require('chai').should;
|
||||
console.log('a');
|
||||
//console.log(this.eckey.public.length);
|
||||
|
||||
this.extendedPublicKey = r.buffer();
|
||||
}
|
||||
|
||||
HierarchicalKey.prototype.extendedPublicKeyString = function(format) {
|
||||
|
|
|
@ -316,7 +316,11 @@ describe('HierarchicalKey', function() {
|
|||
//hk.derive(sp).extendedPrivateKeyString().should.equal(
|
||||
// 'tprv8cSDV3fVD6wqGoLKykTPhRwWLiwD6WBHvYHYkFvp8PJvApm7HCfY9HH9P6Q6iPaCGNsU3LEqh7iJMN7478TqjkLFnf71f9zBXXd7XoiL7dw');
|
||||
//hk.derive(sp).extendedPrivateKeyString().should.equal(hk.derive(sp).extendedPrivateKeyString());
|
||||
hk.derive(hp).extendedPrivateKeyString().should.equal(hk.derive(hp).extendedPrivateKeyString());
|
||||
var epk1 = hk.derive(hp).extendedPrivateKeyString();
|
||||
var epk2 = hk.derive(hp).extendedPrivateKeyString();
|
||||
console.log(epk1);
|
||||
console.log(epk2);
|
||||
epk1.should.equal(epk2);
|
||||
//hk.derive(hp).extendedPrivateKeyString().should.equal(
|
||||
// 'tprv8cSDV3fdYmUoTNGu4xRTm6qh3DPrNxPZzukM5FPdWoa9m22ALFJVGbjnU7J4TC5t3MJp293GtZWssAPuV1PNWGjXavQTnXy9xW6Lee2X6rd');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue