Skip to content

Release qbit v0.1.1-testnet4 - #4

Merged
kiwidream merged 14 commits into
mainfrom
0.1.1-testnet4
Jun 24, 2026
Merged

kiwidream merged 14 commits into
mainfrom
0.1.1-testnet4

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Release qbit v0.1.1-testnet4 as the next public testnet4 maintenance update.
  • Include the public release, CI, contribution, issue template, security, and release-policy surface needed for the testnet4 release process.
  • Merge the current public 0.1.x branch into 0.1.1-testnet4 so the release PR includes the public fork-parameter test fixes before landing on main.

Recently Merged Into This PR

Release Notes Summary

Full release notes are in doc/release-notes-0.1.1-testnet4.md.

  • This is a public testnet4 maintenance release since v0.1.0-testnet4; it preserves the reset testnet4 lineage and does not require a testnet4 chain reset for upgrades from v0.1.0-testnet4.
  • Release artifacts are for public testnet use; qbit mainnet is not launched, and operators should use -testnet4 or -chain=testnet4.
  • AuxPoW mining compatibility is updated by correcting the parent-coinbase commitment byte order, preserving historical testnet4 AuxPoW validation before height 20500, and switching to corrected display order at and after height 20500.
  • createauxblock now reports commitmentorder and commitmentactivationheight, and regtest can exercise the transition with -testactivationheight=auxpowcommitment@<height>.
  • Legacy AuxPoW upgrade behavior is hardened: archive nodes can recover missing persisted AuxPoW payloads from retained block files, legacy pruned datadirs trigger a full reindex/resync when needed, and -reindex-chainstate is rejected for that unrecoverable legacy-pruned path.
  • Wallet/RPC/PQC changes add signdatapqchash and verifydatapqchash, 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.
  • Qt send preparation moves off the GUI thread, adds cancellation/progress/status visibility around PQC signing phases, improves plaintext PQC validation guidance, refreshes overview logo handling, and shows the client version in the status bar.
  • Release and CI work bumps metadata to 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 libbitcoinpqc v0.3.0 subtree.

Validation

  • Public checkout compared cleanly against the prepared source snapshot before the initial push.
  • No sanitizer mapping file is present in the public checkout.
  • Snapshot commit message is public-only: release: publish qbit v0.1.1-testnet4 source snapshot.
  • Merged origin/0.1.x into the PR branch at 56d4f06f6a; 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.
  • Conflict-marker scan and git diff --check passed after the merge resolution.
  • Require squash or rebase merges in public rulesets #7 validated ruleset JSON with jq empty and git diff --check.
  • test: wait for PQC key validation before wallet signing #8 validated touched functional tests/helpers with Python compile checks and git diff --check.
  • Adjust AuxPoW commitment activation height #9 validated with git diff --check and a stale-reference search for 27700.
  • Pin libbitcoinpqc subtree to v0.3.0 #10 validated the subtree import, exact pinned commit comparison, standalone libbitcoinpqc CMake build, and standalone CTest.
  • Public CI is rerunning on latest head 07cd8218200d9d3aeda32a9c53737dbcc66704ff; do not merge until required gates are green.

Next

  • Review the public CI run from this public branch.
  • Merge through the public main path before tagging v0.1.1-testnet4.
  • Record the resulting public source commit for issue 854.

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with 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_BUILD to 1 and adding the GitHub contribution, security, and CI infrastructure expected for public merges.

Public process and docs add structured issue/PR templates, SECURITY.md with [email protected], and updates to CONTRIBUTING.md / README.md (target main, ci:qbit-trusted gating, official Qbit-Org/qbit repo 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 for main, 0.1.x, release tags, and upstream/**.

Release validation moves testnet posture verification to ci/release/verify_testnet_release_posture.py (with tests), wires release-publish.yml to that path, and adds scanner evidence tooling under ci/scanners/.

Misc: libbitcoinpqc subtree script pins upstream v0.3.0 and disables BUILD_TESTING in 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.

summraznboi and others added 3 commits June 18, 2026 16:21
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
@kiwidream kiwidream changed the title Publish qbit v0.1.1-testnet4 source snapshot Release qbit v0.1.1-testnet4 Jun 24, 2026
* 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

@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 default 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.

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.

Comment thread .github/ci-test-each-commit-exec.py Resolved
@djh58
djh58 self-requested a review June 24, 2026 16:52
@kiwidream
kiwidream merged commit 08b8476 into main Jun 24, 2026
25 checks passed
@kiwidream
kiwidream deleted the 0.1.1-testnet4 branch June 25, 2026 14:50
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]>
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.

3 participants