Skip to content

Fix taproot invalid key aggregation fixture and un-ignore test - #14

Merged
secsovereign merged 1 commit into
mainfrom
fix/taproot-invalid-key-aggregation-fixture
Sep 18, 2026
Merged

secsovereign merged 1 commit into
mainfrom
fix/taproot-invalid-key-aggregation-fixture

Conversation

@secsovereign

Copy link
Copy Markdown
Member

Summary

  • Engineering test test_taproot_invalid_key_aggregation used internal_pubkey = [0x79u8; 32], which is not a valid x-only pubkey. That caused Invalid taproot tweak (not a secp256k1 backend mismatch), so the #[ignore] blame was wrong.
  • Mirrored the same generator x bytes already used by src/taproot.rs::test_validate_taproot_key_aggregation_invalid / the valid aggregation engineering test.
  • Dropped #[ignore] and updated the comment accordingly.

Test plan

  • cargo fmt --check
  • CARGO_INCREMENTAL=0 cargo check --features production (path patch aside)
  • cargo test --test engineering_suite engineering::taproot_integration_tests::test_taproot_invalid_key_aggregation --features production (no --ignored) → ok

The engineering suite used [0x79u8;32], which is not a valid x-only
pubkey and fails with Invalid taproot tweak rather than testing wrong
output-key rejection. Mirror the generator x from the unit test and
drop the ignore that incorrectly blamed a secp256k1 backend mismatch.
@secsovereign
secsovereign merged commit a89e151 into main Sep 18, 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