Created
March 29, 2014 13:38
-
-
Save matiu/9854631 to your computer and use it in GitHub Desktop.
p2sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cosign.prototype.cmd_raw_sign_scripthash = function(anypay, tx, i, scriptPubKey, txSigHash) | |
{ | |
var scriptHash = scriptPubKey.capture()[0]; | |
var addr = new Address(this.network.addressScript, scriptHash); | |
var addrStr = addr.as('base58'); | |
if (!(addrStr in this.wallet.datastore.scripts)) | |
return; | |
var scriptHex = this.wallet.datastore.scripts[addrStr]; | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment