Skip to content

Commit b23c34a

Browse files
committed
Merge branch 'bip-sizefp'
2 parents 0606cf6 + c8406d3 commit b23c34a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bip-0180.mediawiki

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ To verify an individual size proof:
5757
##Subtract the default size it was presumed to consume, and add the claimed total size of tx.
5858
##Take the SHA2 midstate, and update it with the final SHA2 chunk (which needs to be padded, including with the total tx size). The final SHA2 hash is the transaction id (stripped-size proof) or hash (full-size proof).
5959
#For the full-size proof, replace the 60 byte default with any larger sizes proven from the stripped-size proof.
60-
#Build the merkle root, and compare it to the block header (stripped-size proof) or witness commitment (full-size proof).
61-
#Check that if there are any duplicate merkle links, there are no full tx proofs on the right side of them.
60+
#Build the merkle root, and compare it to the block header (stripped-size proof) or witness commitment (full-size proof). Ensure when building the merkle root, that there are no duplicate merkle links, and each merkle link claims to represent the correct number of represented transactions.
6261
#Add 80 bytes, plus the size of the tx-count varint, to the calculated lower-bound size.
6362
#The calculated size is returned as the lower-bound possible size of the block.
6463
@@ -118,7 +117,7 @@ By supporting block size fraud proofs, light clients can protect their users fro
118117

119118
Why must a full tx size proof be included?
120119

121-
* This is necessary to establish that the claimed block transaction count is correct.
120+
* This is necessary to establish that the claimed block transaction count is not inflated. Otherwise, a prover could claim any number of represented transactions for merkle links, and rely on the default size alone to exceed the limit.
122121
123122
How does the full tx size proof actually prove the size?
124123

0 commit comments

Comments
 (0)