Address/Script: consistent function ordering
This commit is contained in:
parent
842b075e75
commit
54cc123d31
2 changed files with 15 additions and 15 deletions
src
|
@ -314,6 +314,13 @@ Script.createPubKeyHashScriptSig = function(signature, pubKey) {
|
|||
return script
|
||||
}
|
||||
|
||||
// <scriptSig> {serialized scriptPubKey script}
|
||||
Script.createP2SHScriptSig = function(scriptSig, scriptPubKey) {
|
||||
var inScript = new Script(scriptSig.buffer)
|
||||
inScript.writeBytes(scriptPubKey.buffer)
|
||||
return inScript
|
||||
}
|
||||
|
||||
// OP_0 [signatures ...]
|
||||
Script.createMultisigScriptSig = function(signatures, scriptPubKey) {
|
||||
if (scriptPubKey) {
|
||||
|
@ -334,13 +341,6 @@ Script.createMultisigScriptSig = function(signatures, scriptPubKey) {
|
|||
return inScript
|
||||
}
|
||||
|
||||
// <scriptSig> {serialized scriptPubKey script}
|
||||
Script.createP2SHScriptSig = function(scriptSig, scriptPubKey) {
|
||||
var inScript = new Script(scriptSig.buffer)
|
||||
inScript.writeBytes(scriptPubKey.buffer)
|
||||
return inScript
|
||||
}
|
||||
|
||||
Script.prototype.clone = function() {
|
||||
return new Script(this.buffer)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue