Skip to content

Fix orphaned taproot_more_tests P2TR fixture (wire + PUSH_32) - #17

Merged
secsovereign merged 1 commit into
mainfrom
fix/taproot-more-tests-p2tr-fixture
Sep 21, 2026
Merged

secsovereign merged 1 commit into
mainfrom
fix/taproot-more-tests-p2tr-fixture

Conversation

@secsovereign

Copy link
Copy Markdown
Member

Summary

  • tests/unit/taproot_more_tests.rs was orphaned (not in tests/unit/mod.rs) and built P2TR as 33 bytes (OP_1 + 32-byte key), omitting BIP341 PUSH_32.
  • Wire mod taproot_more_tests; and mirror the 34-byte fixture used by taproot_integration_tests / taproot_suite (TAPROOT_SCRIPT_PREFIX, PUSH_32_BYTES, key).
  • Does not pull other orphaned unit modules into this PR. No PARTIAL_BASELINE bump, no merge/publish.

Test plan

  • cargo fmt / cargo fmt --check
  • CARGO_INCREMENTAL=0 cargo check (path patch aside → crates.io; restored after)
  • cargo test --test unit_suite unit::taproot_more_tests::test_validate_taproot_script_and_extract_key -- --exact → ok

BIP341 P2TR is OP_1 PUSH_32 <32-byte key> (34 bytes); the orphaned unit
fixture omitted PUSH_32. Wire mod taproot_more_tests in unit/mod.rs.
@secsovereign
secsovereign merged commit cdbe7a1 into main Sep 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant