Migrates Address to stricter API subset

This commit is contained in:
Daniel Cousens 2014-04-17 23:31:45 +10:00
parent 701af74ade
commit 682ec133bb
9 changed files with 327 additions and 184 deletions

View file

@ -121,7 +121,7 @@ ECPubKey.prototype.verify = function(hash, sig) {
}
ECPubKey.prototype.getAddress = function(version) {
return new Address(crypto.hash160(this.toBuffer()), version)
return Address.fromPubKey(this, version)
}
// Export functions