|
|
@ -400,7 +400,7 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash |
|
|
|
|
|
|
|
// enforce in order signing of public keys
|
|
|
|
assert(input.pubKeys.some(function (pubKey, i) { |
|
|
|
if (!bufferutils.equal(kpPubKey, pubKey)) return false |
|
|
|
if (kpPubKey.compare(pubKey) !== 0) return false |
|
|
|
|
|
|
|
assert(!input.signatures[i], 'Signature already exists') |
|
|
|
|
|
|
@ -408,7 +408,7 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash |
|
|
|
input.signatures[i] = signature |
|
|
|
|
|
|
|
return true |
|
|
|
}, this), 'key pair cannot sign for this input') |
|
|
|
}), 'key pair cannot sign for this input') |
|
|
|
} |
|
|
|
|
|
|
|
module.exports = TransactionBuilder |
|
|
|