From 69c0497038478fe7bf9bc68d05a5d0c439b25bd5 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 26 Apr 2014 03:58:25 +1000 Subject: [PATCH] Renames createInputScript to createPubKeyHashScriptSig --- src/script.js | 2 +- src/transaction.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script.js b/src/script.js index 003e95f..793f227 100644 --- a/src/script.js +++ b/src/script.js @@ -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()) diff --git a/src/transaction.js b/src/transaction.js index c610056..f346125 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -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) }