Repository navigation
test: add the qbit P2MR v1 conformance corpus - #113
Merged
Merged
Conversation
This was referenced Jul 12, 2026
kiwidream
force-pushed
the
p2mr-v1-profile-spec
branch
from
July 13, 2026 13:57
6d2f2c6 to
38f59bf
Compare
kiwidream
force-pushed
the
p2mr-v1-conformance-vectors
branch
from
July 13, 2026 13:57
72a9070 to
d1948b7
Compare
kiwidream
changed the base branch from
p2mr-v1-profile-spec
to
p2mr-v1-conformance-suite
July 13, 2026 14:48
6 of 14 tasks
Member
Author
|
Merged into |
This was referenced Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is PR 2 of 4 and is stacked on
p2mr-v1-profile-spec. It changes fixtures and tests, not production consensus behavior.Stack: parent #112 ← PR 2/4 → next #114.
Refs #105
Testing
Validation included a clean
test_bitcoinbuild, all 98script_p2mr_tests, descriptor consumers, exact Python-to-Rust regeneration, manifest--check, JSON checks,git diff --check, and Docker lint.Target Branch
mainor a maintainer-requested release branch such as0.1.x.Stack review base:
p2mr-v1-profile-spec. Final target after the parent merges:1.0.0.Risk / Review Notes
Notes: this PR is consensus-adjacent test data. Existing cryptographic values are preserved; new expected results are checked through qbit's production validation paths.
Docs / Process Impact
Choose exactly one:
The test-data README documents the authoritative corpus and generator contract.
libbitcoinpqc Subtree Checklist (if
src/libbitcoinpqcchanged)Qbit-Org/qbit-libbitcoinpqc.contrib/devtools/update-libbitcoinpqc-subtree.sh.test/lint/libbitcoinpqc-subtree-check.shpasses locally.contrib/devtools/update-libbitcoinpqc-subtree.shis intentional and matchesdoc/subtrees/libbitcoinpqc.md.Not applicable; the subtree is unchanged.
Note
Low Risk
Test fixtures, devtools, and documentation only; PR description states no production consensus or script behavior changes.
Overview
Introduces a versioned qbit P2MR v1 test corpus (
qbit-p2mr-v1, schema 1) with ap2mr_v1_manifest.jsonthat pins per-file SHA256 digests, case counts, spec linkage, and BIP-360 comparison metadata. Newp2mr_cross_profile_vectors.jsondocuments qbit vs pinned BIP-360 expectations; manifest tooling also covers commitment, witness, and script-boundary fixture files wired intotest_bitcoin.Witness regeneration no longer overwrites a bare array: Python and Rust generators take
--input/--output, merge only owned vector IDs (Python vs Rust), and enrich entries withid,generator,witness,digest_defined, and structuredexpectedoutcomes. Python adds a CHECKSIGADD sub-vector on the default-sighash case; Rust validates the wrapped corpus shape before merging.Adds
contrib/devtools/update-p2mr-v1-manifest.pyto refresh or--checkmanifest digests/counts, and documents the Python→Rust→manifest workflow insrc/test/data/README.md.Reviewed by Cursor Bugbot for commit d1948b7. Bugbot is set up for automated code reviews on this repo. Configure here.