Merge pull request #2223 from jeanpablojp/bip360-fix-size-claim

bip360: correct the claimed P2MR witness size saving
This commit is contained in:
Jon Atack authored and GitHub committed 2026-08-02 21:03:44 -07:00
commit e7263a4cfe
1 file changed
+1 -1
+1 -1
View File
@@ -307,7 +307,7 @@ control block = [size] [control byte] [Merkle path] (1 + 1 + 32*m = 2 + 32*m byt
====Comparison with P2TR script path spend==== ====Comparison with P2TR script path spend====
A P2MR witness will be smaller than the witness to an equivalent P2TR script path spend. This is because P2MR does not require inclusion of an internal public key in the control block to unlock and spend an output. For this reason, a P2MR witness will always be 32 bytes smaller than an equivalent P2TR script path spend witness. A P2MR witness will be smaller than the witness to an equivalent P2TR script path spend. This is because P2MR does not require inclusion of an internal public key in the control block to unlock and spend an output. For this reason, a P2MR witness will be 32 bytes smaller than an equivalent P2TR script path spend witness, except at ''m = 7'', where the two control blocks fall on opposite sides of the compact size boundary and the saving is 34 bytes.
==Performance Impact== ==Performance Impact==