Repository navigation
doc: define the qbit P2MR v1 consensus profile - #112
Merged
Merged
Conversation
6 of 14 tasks
kiwidream
force-pushed
the
p2mr-v1-profile-spec
branch
from
July 13, 2026 13:57
6d2f2c6 to
38f59bf
Compare
6 of 14 tasks
Member
Author
|
Merged into |
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 1 of 4. It intentionally preserves current transaction acceptance. Later stack layers add the machine-readable corpus, independent oracle, and release gate.
Stack: PR 1/4 → next #113.
Refs #105
Testing
Validation included the cumulative stack's clean
test_bitcoinbuild, 98script_p2mr_tests, independent hash reproduction, documentation checks,git diff --check, and Docker lint.Target Branch
mainor a maintainer-requested release branch such as0.1.x.Targets the maintained
1.0.0release branch.Risk / Review Notes
Notes: the new document is consensus-sensitive normative text, but executable production changes are comment-only. Any discovered semantic discrepancy must be handled in a separate issue rather than folded into this stack.
Docs / Process Impact
Choose exactly one:
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
Changes are normative documentation and comments only; transaction acceptance is unchanged, though reviewers should treat the new spec as the authoritative contract for future divergence from implementation.
Overview
Adds a frozen, versioned qbit P2MR v1 consensus profile (
qbit-p2mr-v1) with a pinned reference commit, a newdoc/consensus/index, and links from the root README, doc index, integration guides, release notes, and Bitcoin-differences page.The spec documents byte-level rules—activation, witness/annex parsing,
P2MRLeaf/P2MRBranchcommitments, depth-zero script execution (unlike pinned BIP-360 ancestry),P2MRSighash, fixed SLH-DSA-SHA2-128s-bounded30 PQC (no witness algorithm byte; optional sighash suffix only), opcodes, limits, and consensus vs policy—and states explicitly that qbit P2MR v1 is not BIP-360 compatible.Integrator-facing docs now require that profile for exchanges, pools, and RPC clients (e.g. trailing sig byte is sighash, not an algorithm selector). User docs drop the old
0x01algorithm-byte story in favor of the fixed profile naming.Source, policy, and tests: comment and help text in
interpreter,policy,descriptor,params.h, and functional/unit tests are retitled from BIP-360 to qbit P2MR v1; no executable consensus or policy logic changes in this PR.Reviewed by Cursor Bugbot for commit 38f59bf. Bugbot is set up for automated code reviews on this repo. Configure here.