Migrates Address to stricter API subset
This commit is contained in:
parent
701af74ade
commit
682ec133bb
9 changed files with 327 additions and 184 deletions
src
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue