mirror of
https://github.com/bitcoin/bips.git
synced 2026-07-27 18:13:38 +00:00
bip360 test vectors: non-standard leaf version should be allowed during construction of P2MR output (#46)
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user