bip360 test vectors: non-standard leaf version should be allowed during construction of P2MR output (#46)

This commit is contained in:
jbride authored and notmike committed 2026-06-25 19:59:03 -06:00
1 parent 35b9ffe21b
commit 907db20348
3 files changed
+7 -1

No files matched your search

@@ -65,6 +65,9 @@ fn test_p2mr_single_leaf_script_tree() {
process_test_vector_p2mr(test_vector).unwrap();
}
/// Verifies that P2MR construction succeeds when leaves carry non-standard leaf versions (e.g. 0xfa).
/// Unknown leaf versions are accepted: the TapLeaf hash is computed using the supplied version,
/// and the resulting merkle root and control blocks are valid.
#[test]
fn test_p2mr_different_version_leaves() {
@@ -52,6 +52,9 @@ fn test_p2mr_pqc_single_leaf_script_tree() {
process_test_vector_p2mr(test_vector).unwrap();
}
/// Verifies that P2MR construction succeeds when leaves carry non-standard leaf versions (e.g. 0xfa).
/// Unknown leaf versions are accepted: the TapLeaf hash is computed using the supplied version,
/// and the resulting merkle root and control blocks are valid.
#[test]
fn test_p2mr_pqc_different_version_leaves() {