HDWallet: remove getKeyVersion

This commit is contained in:
Daniel Cousens 2014-05-31 18:53:39 +10:00
parent 02f5fceda7
commit ac9e259fcd

View file

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