1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-08-03 18:21:54 +00:00

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
2026-08-02 21:03:44 -07:00
committed by GitHub

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====
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==