Renames createInputScript to createPubKeyHashScriptSig
This commit is contained in:
parent
a4e68d142d
commit
69c0497038
2 changed files with 2 additions and 2 deletions
|
@ -419,7 +419,7 @@ Script.createMultisigOutputScript = function(m, pubKeys) {
|
|||
}
|
||||
|
||||
// {signature} {pubKey}
|
||||
Script.createInputScript = function(signature, pubKey) {
|
||||
Script.createPubKeyHashScriptSig = function(signature, pubKey) {
|
||||
var script = new Script()
|
||||
script.writeBytes(signature)
|
||||
script.writeBytes(pubKey.toBuffer())
|
||||
|
|
|
@ -320,7 +320,7 @@ Transaction.prototype.sign = function(index, key, type, network) {
|
|||
var script = Script.createOutputScript(address, network)
|
||||
var signature = this.signScriptSig(index, script, key, type)
|
||||
|
||||
var scriptSig = Script.createInputScript(signature, key.pub)
|
||||
var scriptSig = Script.createPubKeyHashScriptSig(signature, key.pub)
|
||||
this.setScriptSig(index, scriptSig)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue