Skip to content

Commit 69c0497

Browse files
committed
Renames createInputScript to createPubKeyHashScriptSig
1 parent a4e68d1 commit 69c0497

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Script.createMultisigOutputScript = function(m, pubKeys) {
419419
}
420420

421421
// {signature} {pubKey}
422-
Script.createInputScript = function(signature, pubKey) {
422+
Script.createPubKeyHashScriptSig = function(signature, pubKey) {
423423
var script = new Script()
424424
script.writeBytes(signature)
425425
script.writeBytes(pubKey.toBuffer())

src/transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Transaction.prototype.sign = function(index, key, type, network) {
320320
var script = Script.createOutputScript(address, network)
321321
var signature = this.signScriptSig(index, script, key, type)
322322

323-
var scriptSig = Script.createInputScript(signature, key.pub)
323+
var scriptSig = Script.createPubKeyHashScriptSig(signature, key.pub)
324324
this.setScriptSig(index, scriptSig)
325325
}
326326

0 commit comments

Comments
 (0)