mirror of
https://github.com/bitcoin/bips.git
synced 2026-08-03 18:21:54 +00:00
In p2mr_pqc_construction.json, the three-leaf vectors (p2mr_three_leaf_complex, p2mr_three_leaf_alternative) listed intermediary.leafHashes with entries 0 and 2 swapped relative to the depth-first order of the script tree, while the merkle root, scriptPubKey, address and control blocks all follow depth-first order (as do the same trees in p2mr_construction.json). In p2mr_different_version_leaves, scriptPathControlBlocks[1] started with byte 0xc1 although the leaf it commits to has leafVersion 0xfa; the control byte carries the leaf version in its upper 7 bits with the low bit set, so it must be 0xfb. The vector's leafHashes[1] and merkle root already correspond to the 0xfa leaf.