|
|
@ -291,7 +291,7 @@ |
|
|
|
* Extract bitcoin addresses from an output script |
|
|
|
*/ |
|
|
|
Script.prototype.extractAddresses = function (addresses) |
|
|
|
{ |
|
|
|
{ |
|
|
|
switch (this.getOutType()) { |
|
|
|
case 'Address': |
|
|
|
addresses.push(new Address(this.chunks[2])); |
|
|
@ -307,7 +307,7 @@ |
|
|
|
default: |
|
|
|
throw new Error("Encountered non-standard scriptPubKey"); |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* Create an m-of-n output script |
|
|
@ -327,7 +327,7 @@ |
|
|
|
script.writeOp(OP_CHECKMULTISIG); |
|
|
|
|
|
|
|
return script; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* Create a standard payToPubKeyHash input. |
|
|
|