Repository navigation
Release qbit v0.1.1-testnet4 - #4
Merged
Merged
Conversation
Update test vectors and expectations that broke due to qbit's divergence from Bitcoin (address/key prefixes, bech32 HRP "qb", BIP324 network magic, MAX_MONEY 210M, WITNESS_SCALE_FACTOR=1, new genesis), and fix a null-deref SEGFAULT in net_peer_connection_tests caused by the changed default port. Affected: bip32, bip324, key_io, script_standard, transaction, feebumper, net_peer_connection, and the qt RPCNestedTests. Full suite now passes. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
test: fix unit tests for qbit fork parameters
# Conflicts: # src/test/bip32_tests.cpp # src/test/data/key_io_invalid.json # src/test/data/tx_invalid.json # src/test/net_peer_connection_tests.cpp
Require aggregate checks in public rulesets
…-wait Fix PR 4 Windows and lint failures
* policy: require squash or rebase merges * policy: set default PR merge methods
* subtree: pin libbitcoinpqc helper to v0.3.0 * subtree: remove legacy libbitcoinpqc import * Squashed 'src/libbitcoinpqc/' content from commit ac72d1ffa0 git-subtree-dir: src/libbitcoinpqc git-subtree-split: ac72d1ffa0ef486f08d37334a43f5db1adb731db * cmake: suppress libbitcoinpqc subtree tests
* test: wait for PQC key validation before wallet signing * test: centralize PQC validation waits
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 07cd821. Configure here.
djh58
self-requested a review
June 24, 2026 16:52
djh58
approved these changes
Jun 24, 2026
18 tasks done
kiwidream
added a commit
that referenced
this pull request
Nov 2, 2026
1965d0da1e Release qbit-libbitcoinpqc 0.3.2 (#17) db10f2ed1e Forward-port 0.3.1 release metadata and provenance doc to main (#16) edcea6cb89 Make the UBSan CI steps pass and require Linux CI on main (#14) 5fdfda2f85 Set allocator_may_return_null in the ASan release smoke (#13) d3c6a6f0ea Prove requested SHA backend implementations execute (#4) 70008b9362 Report an inconsistent secret key from sign as BAD_KEY and allocation failure as OUT_OF_MEMORY (#10) d165da6a15 Burn released stack once per secret-key call instead of per SHA-2 block (#6) 85cda2cfa8 Zero SLH-DSA secret-key scratch before keygen/sign return (#5) f55b86b609 Add minimal GitHub ruleset configs (#2) d5700dad0b Add trusted CI runner label Imported from the upstream tag v0.3.2 (signed annotated tag 81709ebe34, peeled 1965d0da1e, tree 4cb1705), the squash merge of Qbit-Org/qbit-libbitcoinpqc#17 onto main db10f2ed1e. git merge-tree from the v0.3.0 tree with qbit's subtree and this tree produces the same tree, so this is what contrib/devtools/update-libbitcoinpqc-subtree.sh produces, and qbit's downstream v0.3.0 crossbeam-epoch lockfile patch is part of the tag. It is committed as one squash-merge-shaped commit, the shape test/lint/libbitcoinpqc-subtree-check.sh reads, because the signing preview cannot display the tool's whole-tree squash commit. git-subtree-dir: src/libbitcoinpqc git-subtree-split: 1965d0da1eb4d9e196613b8f3a5d0d866a221c53 Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream
added a commit
that referenced
this pull request
Nov 2, 2026
* Squashed 'src/libbitcoinpqc/' changes from ac72d1ffa0..1965d0da1e 1965d0da1e Release qbit-libbitcoinpqc 0.3.2 (#17) db10f2ed1e Forward-port 0.3.1 release metadata and provenance doc to main (#16) edcea6cb89 Make the UBSan CI steps pass and require Linux CI on main (#14) 5fdfda2f85 Set allocator_may_return_null in the ASan release smoke (#13) d3c6a6f0ea Prove requested SHA backend implementations execute (#4) 70008b9362 Report an inconsistent secret key from sign as BAD_KEY and allocation failure as OUT_OF_MEMORY (#10) d165da6a15 Burn released stack once per secret-key call instead of per SHA-2 block (#6) 85cda2cfa8 Zero SLH-DSA secret-key scratch before keygen/sign return (#5) f55b86b609 Add minimal GitHub ruleset configs (#2) d5700dad0b Add trusted CI runner label Imported from the upstream tag v0.3.2 (signed annotated tag 81709ebe34, peeled 1965d0da1e, tree 4cb1705), the squash merge of Qbit-Org/qbit-libbitcoinpqc#17 onto main db10f2ed1e. git merge-tree from the v0.3.0 tree with qbit's subtree and this tree produces the same tree, so this is what contrib/devtools/update-libbitcoinpqc-subtree.sh produces, and qbit's downstream v0.3.0 crossbeam-epoch lockfile patch is part of the tag. It is committed as one squash-merge-shaped commit, the shape test/lint/libbitcoinpqc-subtree-check.sh reads, because the signing preview cannot display the tool's whole-tree squash commit. git-subtree-dir: src/libbitcoinpqc git-subtree-split: 1965d0da1eb4d9e196613b8f3a5d0d866a221c53 Co-Authored-By: Claude Opus 5.5 <[email protected]> * subtree: pin libbitcoinpqc v0.3.2 and test the signer stack scrub Point every libbitcoinpqc pin at the signed v0.3.2 tag (peeled 1965d0da1e, imported in the previous commit): the subtree helper default, the subtree check, the nightly scanner and the fuzz target mapping, plus the docs that name the tag. v0.3.2 is v0.3.0 plus the secret-key scratch zeroization (#5), the once-per-call stack burn (#6), the non-wrapping secure_zero_local loop (#14), BAD_KEY for signing with an inconsistent secret key and a new OUT_OF_MEMORY (-6) code for allocation failures (#10), and the RUSTSEC-2026-0204 crossbeam-epoch 0.9.20 lockfile fix that qbit applied downstream on v0.3.0, so the vendored tree now equals the tagged tree. Drop the inert lockfile exception from the subtree check and the scanner. qbit's callers treat any nonzero result as a failure and no qbit test asserts a code that changed, so no caller changes. Keys, signatures and verification results are unchanged. The release bumps the crate to 0.3.2, so also move the qbit-libbitcoinpqc path-dependency entry in the two contrib/testgen lockfiles to 0.3.2; otherwise the P2MR oracle job's cargo fetch --locked refuses the stale lockfiles. Correct the runbook's stack note: the forced RelWithDebInfo C flags follow CMAKE_C_FLAGS on the compile line, so an -O0 in APPEND_CFLAGS does not select the unoptimized 288 KiB burn, and every qbit build burns 16 KiB. Add pqc_secret_key_calls_scrub_released_stack. It runs keygen, import validation, signing and HKDF derivation through CPQCKey on a painted thread stack, then requires that no SK_SEED or SK_PRF copy remains and that the longest zeroed run below the caller is at least 12 KiB with at most 64 bytes written below it, so no frame of the call ran below the burn. The 64 bytes cover the burn's own prologue on i686, where position-independent code pushes a return address below the array to load its GOT pointer. The inspection is skipped under TSan, whose runtime calls run below every instrumented frame, as under ASan, HWASan, MSan and SafeStack. A 4 KiB burn fails the test. Refs #260 Co-Authored-By: Claude Opus 5.5 <[email protected]> * doc: add release notes for #268 Refs #260 Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
kiwidream
added a commit
that referenced
this pull request
Nov 12, 2026
* Squashed 'src/libbitcoinpqc/' changes from ac72d1ffa0..1965d0da1e 1965d0da1e Release qbit-libbitcoinpqc 0.3.2 (#17) db10f2ed1e Forward-port 0.3.1 release metadata and provenance doc to main (#16) edcea6cb89 Make the UBSan CI steps pass and require Linux CI on main (#14) 5fdfda2f85 Set allocator_may_return_null in the ASan release smoke (#13) d3c6a6f0ea Prove requested SHA backend implementations execute (#4) 70008b9362 Report an inconsistent secret key from sign as BAD_KEY and allocation failure as OUT_OF_MEMORY (#10) d165da6a15 Burn released stack once per secret-key call instead of per SHA-2 block (#6) 85cda2cfa8 Zero SLH-DSA secret-key scratch before keygen/sign return (#5) f55b86b609 Add minimal GitHub ruleset configs (#2) d5700dad0b Add trusted CI runner label Imported from the upstream tag v0.3.2 (signed annotated tag 81709ebe34, peeled 1965d0da1e, tree 4cb1705), the squash merge of Qbit-Org/qbit-libbitcoinpqc#17 onto main db10f2ed1e. git merge-tree from the v0.3.0 tree with qbit's subtree and this tree produces the same tree, so this is what contrib/devtools/update-libbitcoinpqc-subtree.sh produces, and qbit's downstream v0.3.0 crossbeam-epoch lockfile patch is part of the tag. It is committed as one squash-merge-shaped commit, the shape test/lint/libbitcoinpqc-subtree-check.sh reads, because the signing preview cannot display the tool's whole-tree squash commit. Co-Authored-By: Claude Opus 5.5 <[email protected]> * subtree: pin libbitcoinpqc v0.3.2 and test the signer stack scrub Point every libbitcoinpqc pin at the signed v0.3.2 tag (peeled 1965d0da1e, imported in the previous commit): the subtree helper default, the subtree check, the nightly scanner and the fuzz target mapping, plus the docs that name the tag. v0.3.2 is v0.3.0 plus the secret-key scratch zeroization (#5), the once-per-call stack burn (#6), the non-wrapping secure_zero_local loop (#14), BAD_KEY for signing with an inconsistent secret key and a new OUT_OF_MEMORY (-6) code for allocation failures (#10), and the RUSTSEC-2026-0204 crossbeam-epoch 0.9.20 lockfile fix that qbit applied downstream on v0.3.0, so the vendored tree now equals the tagged tree. Drop the inert lockfile exception from the subtree check and the scanner. qbit's callers treat any nonzero result as a failure and no qbit test asserts a code that changed, so no caller changes. Keys, signatures and verification results are unchanged. The release bumps the crate to 0.3.2, so also move the qbit-libbitcoinpqc path-dependency entry in the two contrib/testgen lockfiles to 0.3.2; otherwise the P2MR oracle job's cargo fetch --locked refuses the stale lockfiles. Correct the runbook's stack note: the forced RelWithDebInfo C flags follow CMAKE_C_FLAGS on the compile line, so an -O0 in APPEND_CFLAGS does not select the unoptimized 288 KiB burn, and every qbit build burns 16 KiB. Add pqc_secret_key_calls_scrub_released_stack. It runs keygen, import validation, signing and HKDF derivation through CPQCKey on a painted thread stack, then requires that no SK_SEED or SK_PRF copy remains and that the longest zeroed run below the caller is at least 12 KiB with at most 64 bytes written below it, so no frame of the call ran below the burn. The 64 bytes cover the burn's own prologue on i686, where position-independent code pushes a return address below the array to load its GOT pointer. The inspection is skipped under TSan, whose runtime calls run below every instrumented frame, as under ASan, HWASan, MSan and SafeStack. A 4 KiB burn fails the test. Refs #260 Co-Authored-By: Claude Opus 5.5 <[email protected]> * doc: add release notes for #268 Refs #260 Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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
v0.1.1-testnet4as the next public testnet4 maintenance update.0.1.xbranch into0.1.1-testnet4so the release PR includes the public fork-parameter test fixes before landing onmain.Recently Merged Into This PR
27700to20500and updates release notes/tests.src/libbitcoinpqctoQbit-Org/qbit-libbitcoinpqctagv0.3.0, peeled commitac72d1ffa0ef486f08d37334a43f5db1adb731db.Release Notes Summary
Full release notes are in
doc/release-notes-0.1.1-testnet4.md.v0.1.0-testnet4; it preserves the reset testnet4 lineage and does not require a testnet4 chain reset for upgrades fromv0.1.0-testnet4.-testnet4or-chain=testnet4.20500, and switching to corrected display order at and after height20500.createauxblocknow reportscommitmentorderandcommitmentactivationheight, and regtest can exercise the transition with-testactivationheight=auxpowcommitment@<height>.-reindex-chainstateis rejected for that unrecoverable legacy-pruned path.signdatapqchashandverifydatapqchash, harden P2MR signing context selection, authenticate encrypted PQC records, validate plaintext PQC records before private signing use, add phase-aware signing progress, and enable default parallel P2MR/PQC signing with controlled fallback.v0.1.1-testnet4, adds public contribution and release-process surfaces, hardens public Core Checks, trusted-runner gating, release validation, release tag signature documentation, public rulesets, and the pinned libbitcoinpqcv0.3.0subtree.Validation
release: publish qbit v0.1.1-testnet4 source snapshot.origin/0.1.xinto the PR branch at56d4f06f6a; conflict resolution kept the v0.1.1 transaction vectors and took the public fork-parameter test fixes for BIP32, key I/O, and default-port assertions.git diff --checkpassed after the merge resolution.jq emptyandgit diff --check.git diff --check.git diff --checkand a stale-reference search for27700.07cd8218200d9d3aeda32a9c53737dbcc66704ff; do not merge until required gates are green.Next
mainpath before taggingv0.1.1-testnet4.Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Note
Medium Risk
Large CI and release-process changes affect merge gates and publish validation; version metadata and release posture checks are release-critical but do not change consensus code in this diff slice.
Overview
Prepares the v0.1.1-testnet4 public release by bumping
CLIENT_VERSION_BUILDto 1 and adding the GitHub contribution, security, and CI infrastructure expected for public merges.Public process and docs add structured issue/PR templates,
SECURITY.mdwith[email protected], and updates toCONTRIBUTING.md/README.md(targetmain,ci:qbit-trustedgating, officialQbit-Org/qbitrepo URL).CI and branch protection introduce Core Checks (
core-checks.yml) and Full Validation (ci.yml) with aggregated Core Checks Gate and Full Validation Gate jobs, reusable cache/Docker actions, nightly heavy validation and scanner workflows, and rulesets formain,0.1.x, release tags, andupstream/**.Release validation moves testnet posture verification to
ci/release/verify_testnet_release_posture.py(with tests), wiresrelease-publish.ymlto that path, and adds scanner evidence tooling underci/scanners/.Misc: libbitcoinpqc subtree script pins upstream
v0.3.0and disablesBUILD_TESTINGin the subtree CMake add; linearize default RPC port changes to 8352.Reviewed by Cursor Bugbot for commit 07cd821. Bugbot is set up for automated code reviews on this repo. Configure here.