Renames createInputScript to createPubKeyHashScriptSig

This commit is contained in:
Daniel Cousens 2014-04-26 03:58:25 +10:00
parent a4e68d142d
commit 69c0497038
2 changed files with 2 additions and 2 deletions

View file

@ -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())

View file

@ -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)
}