Repository navigation
Add P2MR CHECKSIGPQC sighash vectors - #55
Conversation
b29d673 to
775f260
Compare
|
No actionable findings from this pass. Review Scope Reviewed PR #55 against backing issue #50. The PR changes only the standalone generator, Consensus Impact Consensus-adjacent. Runtime consensus code is not changed, but this adds fixed P2MR Issue Fit The PR satisfies the requested matrix: Deep Checks Performed I traced the generator’s hand-serialized P2MR sighash message against Validation Reviewed Locally ran the generator reproducibility check from the PR body; it passed with no diff:
CI Core Checks passed, including the focused unit job building Residual Risk Full Validation and Required Merge Gate were not complete at the time of review, so I would still wait for the final required checks before merge. |
775f260 to
c7d1d2c
Compare
2a3abca to
2ee233b
Compare
2ee233b to
85fb76f
Compare
* Accept legacy AuxPoW RPC payloads (#23) * Prevent AuxPoW signalling in permissionless GBT (#22) * wallet: defer P2MR getnewaddress keypool refill (#13) * wallet: defer P2MR getnewaddress keypool refill * wallet: bound internal P2MR keypool refill * wallet: align P2MR top-up lock ordering * wallet: schedule raw change P2MR refills * wallet: report paused P2MR refills as failed * wallet: log inline P2MR refill failures * ci: fix BuildKit helper lint * Document AuxPoW commitment order fields (#35) * Restrict explicit wallet output types on P2MR-only chains (#25) * Restrict explicit wallet output types * test: run BECH32 wallet suites on unrestricted regtest * fuzz: run wallet transaction target on unrestricted regtest * Fix BuildKit helper lint * Report missing wallet output managers accurately * Allow managerless wallets with default output options * test: add independent P2MR and CTV script vectors (#29) * Add independent P2MR PQC witness vector tests (#30) * test: add independent P2MR PQC witness vector * test: verify P2MR wrong-domain vector signature * Fix AuxPoW legacy payload disambiguation * wallet: avoid MarkUnused P2MR full top-up (#31) * wallet: avoid MarkUnused P2MR full top-up * wallet: avoid MarkUnused lock inversion * wallet: preserve P2MR recovery lookahead * Split P2MR wallet unit tests (#52) * Remove unused P2MR wallet test import (#58) * Shard P2MR wallet unit tests (#60) * Add independent CHECKDATASIGPQC vector tests (#38) * test: add P2MR data-hash proof fixtures (#43) * test: add independent P2MR commitment vectors (#47) * Reject invalid raw funding outputs (#37) * Validate witness-pruned assumevalid before wipe (#59) * Add independent CHECKDATASIGADDPQC vector tests (#42) * qt: recommend wallet encryption by default (#62) * Verify libbitcoinpqc tagged subtree imports (#41) * ci: verify libbitcoinpqc tagged subtree imports * ci: handle peeled libbitcoinpqc tag refs * ci: peel libbitcoinpqc tag objects before compare * ci: pass auth to libbitcoinpqc verifier * ci: pin libbitcoinpqc verifier inputs * ci: verify libbitcoinpqc import tree * Add P2MR PQC annex sighash vectors (#54) * Add P2MR PQC annex sighash vectors * Guard annex mutation vector test * Add P2MR data signature support to Qt Sign/Verify (#63) * qt: add P2MR data signature dialog * qt: support text data in P2MR signatures * qt: align P2MR proof verification with RPC * test: add P2MR CHECKSIGPQC sighash vectors (#55) * Add rawmr future-leaf coverage (#64) * test: cover P2MR SIGHASH_SINGLE missing outputs (#57) * test: add P2MR PQC codeseparator vectors (#56) * Fix PQC data-hash counter accounting (#46) * Fix PQC data-hash counter accounting * Fix PQC data-hash leaf error priority * Report final PQC slot failures as exhausted * doc: add v0.1.2-testnet4 release notes * build: bump version to v0.1.2-testnet4
Summary
Closes #50.
Adds independent fixed P2MR
OP_CHECKSIGPQCwitness vectors for the non-default sighash modes:SIGHASH_NONESIGHASH_SINGLESIGHASH_ALL|ANYONECANPAYSIGHASH_NONE|ANYONECANPAYSIGHASH_SINGLE|ANYONECANPAYThe fixture set now pins the serialized spend transaction, spent outputs, P2MR leaf/control data, pubkey, signature with explicit hashtype where required, raw
p2mrSigMsg, and finalp2mrSighash.Details
Validation
python3 contrib/devtools/generate-p2mr-pqc-witness-vectors.py --output /tmp/p2mr_pqc_witness_vectors.json && diff -u src/test/data/p2mr_pqc_witness_vectors.json /tmp/p2mr_pqc_witness_vectors.jsoncmake --build build --target test_bitcoin -j"$(sysctl -n hw.ncpu)"build/bin/test_qbit --run_test=script_p2mr_testsNeed help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Note
Low Risk
Changes are confined to devtools and checked-in test vectors; they do not alter node consensus code, though incorrect fixtures could weaken P2MR PQC sighash test coverage.
Overview
Introduces
contrib/devtools/generate-p2mr-pqc-witness-vectors.py, a standalone generator that hand-serializes witness transactions, P2MR leaf/scriptPubKey data, and P2MRSighash messages, then signs digests with a locally built libbitcoinpqc (no qbit wallet/script helpers). It can emit JSON via--outputfor reproducible regeneration.src/test/data/p2mr_pqc_witness_vectors.jsonis regenerated from that tool: the defaultsingle_key_default_sighashentry gets richer metadata (spentOutputs,leafHash, sighash fields, data-sig/ADDPQC blocks) and new hex values; five additional vectors cover non-default sighash modes (NONE,SINGLE, and threeANYONECANPAYcombinations). The annex-present vector gains some of the same structural fields while keeping its prior provenance wording.Reviewed by Cursor Bugbot for commit 85fb76f. Bugbot is set up for automated code reviews on this repo. Configure here.