Fix bitcoinAddress to use getPub().key.export('bytes')
This commit is contained in:
parent
c3fbd63c84
commit
4ffabf05af
@ -132,7 +132,7 @@ BIP32key.fromMasterKey = function(seed) {
|
|||||||
BIP32key.prototype.getKey = function() { return this.key }
|
BIP32key.prototype.getKey = function() { return this.key }
|
||||||
|
|
||||||
BIP32key.prototype.bitcoinAddress = function() {
|
BIP32key.prototype.bitcoinAddress = function() {
|
||||||
return new Address(util.sha256ripe160(this.getPub().key))
|
return new Address(util.sha256ripe160(this.getPub().key.export('bytes')))
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = BIP32key;
|
module.exports = BIP32key;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user