Skip to content

Verify libbitcoinpqc tagged subtree imports - #41

Merged
kiwidream merged 6 commits into
0.1.xfrom
libbitcoinpqc-subtree-handling
Jul 2, 2026
Merged

kiwidream merged 6 commits into
0.1.xfrom
libbitcoinpqc-subtree-handling

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • replace the stale curated/pruned libbitcoinpqc subtree checklist wording with the direct tagged import flow
  • add test/lint/libbitcoinpqc-subtree-check.sh to compare HEAD:src/libbitcoinpqc, the peeled upstream tag tree, and the recorded git-subtree-split
  • wire the new verifier into the subtree lint runner, update helper, scanner provenance, TSAN evidence metadata, fuzz mapping, and subtree docs

Testing

  • docker run --rm -v /Users/miller/conductor:/Users/miller/conductor -w /Users/miller/conductor/workspaces/qbit-v1/budapest-v1 bitcoin-linter bash -lc 'git config --global --add safe.directory /Users/miller/conductor/workspaces/qbit-v1/budapest-v1 && ./ci/lint/06_script.sh'
  • git diff --check

Notes

The signed commit verifies locally with GPG key 289EA3EC2F1939A24984840ED26CFC05586D371E.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Note

Medium Risk
Changes crypto vendoring provenance and CI/scanner gates for src/libbitcoinpqc; mistakes could allow a mismatched or untagged tree while the rest of the repo still builds.

Overview
Moves libbitcoinpqc provenance from the old curated qbit-subtree / libbitcoinpqc-qbit model to direct imports from Qbit-Org/qbit-libbitcoinpqc release tags (default v0.3.0).

Adds test/lint/libbitcoinpqc-subtree-check.sh, which fetches the pinned tag, peels it to a commit, and checks that HEAD:src/libbitcoinpqc, the latest git-subtree-split, and the upstream tag tree all match. That script replaces git-subtree-check.sh -r in the update helper, lint runner, PR checklist, and docs.

contrib/devtools/update-libbitcoinpqc-subtree.sh now fails if git ls-remote cannot resolve the tag and always runs the new check with LIBBITCOINPQC_REMOTE_* env overrides. TSAN evidence drops the curated-subtree ref validation and records subtree_source_ref instead.

ci/scanners/run-scanners.py provenance is retargeted to the tagged upstream: peeled-tag lookup, strict split-vs-tag equality, tree comparisons against import and tag commits, and authenticated invocation of the new verifier. ci/scanners/test_run_scanners.py adds unit tests for tag peeling and provenance gaps.

Docs, fuzz mapping, and vector lint wording are updated to match the tag-based flow (no “pruned curated subtree” assumptions).

Reviewed by Cursor Bugbot for commit 431409f. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread ci/scanners/run-scanners.py Resolved
@kiwidream
kiwidream force-pushed the libbitcoinpqc-subtree-handling branch from 15f3ca0 to 40bc830 Compare June 30, 2026 01:05
Comment thread ci/scanners/run-scanners.py Resolved
@djh58
djh58 self-requested a review June 30, 2026 13:54
Comment thread ci/scanners/run-scanners.py Resolved
djh58
djh58 previously approved these changes Jun 30, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 755bb45. Configure here.

@kiwidream
kiwidream merged commit 1b148be into 0.1.x Jul 2, 2026
39 checks passed
djh58 pushed a commit that referenced this pull request Jul 2, 2026
* 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
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.

2 participants