Browse Source

Renames createInputScript to createPubKeyHashScriptSig

hk-custom-address
Daniel Cousens 11 years ago
parent
commit
69c0497038
  1. 2
      src/script.js
  2. 2
      src/transaction.js

2
src/script.js

@ -419,7 +419,7 @@ Script.createMultisigOutputScript = function(m, pubKeys) {
} }
// {signature} {pubKey} // {signature} {pubKey}
Script.createInputScript = function(signature, pubKey) { Script.createPubKeyHashScriptSig = function(signature, pubKey) {
var script = new Script() var script = new Script()
script.writeBytes(signature) script.writeBytes(signature)
script.writeBytes(pubKey.toBuffer()) script.writeBytes(pubKey.toBuffer())

2
src/transaction.js

@ -320,7 +320,7 @@ Transaction.prototype.sign = function(index, key, type, network) {
var script = Script.createOutputScript(address, network) var script = Script.createOutputScript(address, network)
var signature = this.signScriptSig(index, script, key, type) 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) this.setScriptSig(index, scriptSig)
} }

Loading…
Cancel
Save