diff options
Diffstat (limited to 'bip-sizefp.mediawiki')
-rw-r--r-- | bip-sizefp.mediawiki | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bip-sizefp.mediawiki b/bip-sizefp.mediawiki index 4ea3b33..29d1478 100644 --- a/bip-sizefp.mediawiki +++ b/bip-sizefp.mediawiki @@ -109,6 +109,14 @@ Why must a full tx size proof be included? * This is necessary to establish that the claimed block transaction count is correct. +How does the full tx size proof actually prove the size? + +* The first step of SHA2 hashing is to transform the input data into chunks. The final chunk is required to include the absolute length of the input data at the end of the final chunk. Therefore, by committing to the midstate prior to the final chunk, and replaying only the final chunk, we can confirm that the claimed size matches the full transaction data being hashed. + +How does this prove the block weight? + +* The block weight defined by BIP 141 is the size of the block stripped of its segwit signatures times 3, plus the full size of the block. By proving minimal sizes of both the stripped block and the full block, a minimal weight can also be calculated. + Why is the number of transactions in the block represented as a log2? * To avoid attacks that rely on fooling clients by claiming an amount they cannot verify. |