Author: Peter Todd 2014-03-12 16:24:58
Published on: 2014-03-12T16:24:58+00:00
In an email exchange in March 2014, Mike Hearn discussed calculating the size of a transaction in advance based on the initial transaction size and number of required signatures. He noted that assuming each signature to be placed in the transaction is 73 bytes is not difficult. However, if the transaction does not contain a 73-byte sentinel value, it may be harder to ensure that this part was done correctly. Multisig signing is an example of untrusted input from an adversary, so it's better to handle it correctly rather than trying to make it easier. This may include internally converting every not-yet-signed dummy signature into a 73 byte pushdata prior to calculating the size.
Updated on: 2023-06-08T14:37:52.144697+00:00