Repository navigation
Add independent CHECKDATASIGPQC vector coverage - #38
Conversation
3d257eb to
d71ff5f
Compare
PR ReviewFindingsNo blocking findings. Consensus ImpactConsensus-adjacent test coverage only. The PR adds fixture/test coverage for Review ScopeReviewed PR #38 against issue #34, base Deep Checks PerformedTraced the new fixture loading and witness construction through Issue FitThe added vector pins the fixed The near-miss test covers mutated signature, raw-message signature without the data-signature digest, mutated message hash, mutated committed leaf, and wrong-pubkey leaf/scriptPubKey ( qbit-Specific ChecksThe positive vector is not constructed by signing with qbit’s Validation ReviewedReviewed the author’s listed local build/test/lint commands. Locally, I ran JSON parsing, Residual RiskThe fixture provenance is documented in JSON, but the external generator is not committed, so future regeneration still relies on those notes. Final merge should wait for the pending GitHub checks to complete. |
d71ff5f to
0da5ec9
Compare
0da5ec9 to
b360ded
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
Builds on PR #30 and adds independent
OP_CHECKDATASIGPQCP2MR witness-vector coverage for issue #34.This adds independently generated data-signature fixture fields and tests that verify the valid spend path plus near misses for corrupted signatures, raw-message signatures without the Qbit data-signature domain, mutated witness message hashes, mutated committed leaves, and wrong-pubkey leaves.
Testing
Commands run:
cmake -B build -DBUILD_GUI=OFF -DBUILD_TESTS=ONcmake --build build --target test_bitcoin -j2build/bin/test_qbit --run_test=script_p2mr_tests/p2mr_checkdatasigpqc_accepts_independent_data_signature_vector --catch_system_error=no --log_level=messagebuild/bin/test_qbit --run_test=script_p2mr_tests/p2mr_checkdatasigpqc_rejects_independent_data_signature_vector_near_misses --catch_system_error=no --log_level=messagebuild/bin/test_qbit --run_test=script_p2mr_tests --catch_system_error=no --log_level=messagepython3 -m json.tool src/test/data/p2mr_pqc_witness_vectors.jsongit diff --checkDOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" . && docker run --rm -v "$(pwd)":/bitcoin -v /Users/miller/conductor/repos/qbit-v1:/Users/miller/conductor/repos/qbit-v1 bitcoin-linterThe full
script_p2mr_testsrun prints repeated file-descriptor warnings in this local environment, but exits successfully with no Boost test errors.Target Branch
mainor a maintainer-requested release branch such as0.1.x.Target is PR #30's head branch,
investigate-issue-20, as requested.Risk / Review Notes
Notes: test fixture and unit-test coverage only.
Docs / Process Impact
Choose exactly one:
libbitcoinpqc Subtree Checklist (if
src/libbitcoinpqcchanged)qbit-subtreewas refreshed with prune.contrib/devtools/update-libbitcoinpqc-subtree.sh.test/lint/git-subtree-check.sh -r src/libbitcoinpqcpasses locally.doc/subtrees/libbitcoinpqc.md.Not applicable:
src/libbitcoinpqcwas not changed.Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Note
Low Risk
Test fixtures and unit tests only; no interpreter, consensus, or production signing paths are modified.
Overview
Adds independently generated
OP_CHECKDATASIGPQCfixture data top2mr_pqc_witness_vectors.json(Qbit data-sig domain hash, P2MR leaf/scriptPubKey, signatures, and wrong-pubkey variants) so spends are not produced by qbit signing helpers.Extends
script_p2mr_teststo load those fields, build a four-item witness spend (signature, witness message hash, leaf, control block), and adds acceptance plus near-miss tests: bit-flipped signature or message hash, raw-message signature without the data-sig domain, mutated leaf/commitment, and wrong-pubkey leaf/scriptPubKey pairs.Reviewed by Cursor Bugbot for commit b360ded. Bugbot is set up for automated code reviews on this repo. Configure here.