|
|
@ -81,7 +81,7 @@ Address._transformHash = function(hash){ |
|
|
|
} |
|
|
|
info.hashBuffer = hash; |
|
|
|
return info; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
@ -138,7 +138,7 @@ Address._transformBuffer = function(buffer, network, type){ |
|
|
|
info.network = bufNetwork; |
|
|
|
info.type = bufType; |
|
|
|
return info; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
@ -155,7 +155,7 @@ Address._transformPubkey = function(pubkey){ |
|
|
|
info.hashBuffer = Hash.sha256ripemd160(pubkey.toBuffer()); |
|
|
|
info.type = 'pubkeyhash'; |
|
|
|
return info; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
@ -172,7 +172,7 @@ Address._transformScript = function(script){ |
|
|
|
info.hashBuffer = Hash.sha256ripemd160(script.toBuffer()); |
|
|
|
info.type = 'scripthash'; |
|
|
|
return info; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
@ -190,7 +190,7 @@ Address._transformString = function(data, network, type){ |
|
|
|
var addressBuffer = base58check.decode(data); |
|
|
|
var info = Address._transformBuffer(addressBuffer, network, type); |
|
|
|
return info; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|