|
|
@ -200,14 +200,12 @@ MultiSigInput.normalizeSignatures = function(transaction, input, inputIndex, sig |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
MultiSigInput.OPCODES_SIZE = 7; // serialized size (<=3) + 0 .. N .. M OP_CHECKMULTISIG
|
|
|
|
MultiSigInput.SIGNATURE_SIZE = 74; // size (1) + DER (<=72) + sighash (1)
|
|
|
|
MultiSigInput.PUBKEY_SIZE = 34; // size (1) + DER (<=33)
|
|
|
|
MultiSigInput.OPCODES_SIZE = 1; // 0
|
|
|
|
MultiSigInput.SIGNATURE_SIZE = 73; // size (1) + DER (<=72)
|
|
|
|
|
|
|
|
MultiSigInput.prototype._estimateSize = function() { |
|
|
|
return MultiSigInput.OPCODES_SIZE + |
|
|
|
this.threshold * MultiSigInput.SIGNATURE_SIZE + |
|
|
|
this.publicKeys.length * MultiSigInput.PUBKEY_SIZE; |
|
|
|
this.threshold * MultiSigInput.SIGNATURE_SIZE; |
|
|
|
}; |
|
|
|
|
|
|
|
module.exports = MultiSigInput; |
|
|
|