Browse Source

HDWallet: remove getKeyVersion

hk-custom-address
Daniel Cousens 11 years ago
parent
commit
ac9e259fcd
  1. 6
      src/hdwallet.js

6
src/hdwallet.js

@ -118,7 +118,7 @@ HDWallet.prototype.getFingerprint = function() {
}
HDWallet.prototype.getAddress = function() {
return this.pub.getAddress(this.getKeyVersion())
return this.pub.getAddress(this.network.pubKeyHash)
}
HDWallet.prototype.toBuffer = function(priv) {
@ -249,10 +249,6 @@ HDWallet.prototype.derivePrivate = function(index) {
return this.derive(index + HDWallet.HIGHEST_BIT)
}
HDWallet.prototype.getKeyVersion = function() {
return this.network.pubKeyHash
}
HDWallet.prototype.toString = HDWallet.prototype.toBase58
module.exports = HDWallet

Loading…
Cancel
Save