Skip to content

wallet: batch P2MR counters across mixed descriptors - #163

Merged
kiwidream merged 8 commits into
1.x.xfrom
kiwidream/batch-mixed-descriptor-signing
Sep 22, 2026
Merged

kiwidream merged 8 commits into
1.x.xfrom
kiwidream/batch-mixed-descriptor-signing

Conversation

@kiwidream

@kiwidream kiwidream commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Preserve batched, parallel P2MR signing when a transaction spends from more than one P2MR descriptor (for example internal and external change). Closes #155. Depends on #146; merge this PR after #146. This branch includes the earlier #146 implementation merged with 1.x.x; the issue-specific review range starts at c72d548640. The current #146 tip also has a later Qt test cleanup, which is not included here.

  • The parallel planner now classifies inputs per signing provider. Inputs that are strictly foreign to the current provider (no complete plan, no invalid existing signature, and no leaf key the provider can sign) are skipped for that provider instead of forcing the whole provider into serial signing. Every other bailout (missing data, non-P2MR, SIGHASH_SINGLE without an output, owned but not completely plannable) keeps its serial fallback, so partial signatures and error text are unchanged.
  • Foreign inputs are never signed by that provider, keep their original index, and leave an error, so a provider-local batch can never report whole-transaction success. Each provider still makes exactly one durable counter reservation for its own inputs, at the existing reservation site where qt: move P2MR fee bump signing off the GUI thread #146's reservation guard runs; there is no second reservation site and no cross-manager atomic commit.
  • A provider whose own inputs are all complete and which sees only foreign inputs now returns false instead of falling back to serial signing. The serial path cannot recognise an already-complete P2MR witness as complete and would re-sign it, consuming fresh counters; the parallel path already avoids that. This makes a retry after a partial failure reserve counters only for the descriptor that still has work.
  • Progress accounting counts only complete inputs, so the completed count is monotonic across descriptors within one wallet operation.
  • Cancellation is scoped to the whole wallet operation: once the caller declines, later descriptors stop before their counter reservation, the dummy pass is skipped and the call returns false with "Signing cancelled"; counters an earlier descriptor already committed stay consumed, and a retry with the same transaction reuses the existing witnesses. The Qt fee-bump path already behaves this way through its own sticky state. A reservation or signing failure (not a cancellation) in one descriptor still lets the others continue, as before.
  • Five new wallet tests use one real wallet with both managers and interleaved inputs in both orders, observe durable commits at the database boundary by descriptor id, verify the final transaction independently against all real coins for several hash types, reload persisted counters, and exercise failure before and after each descriptor's commit, retries, and cancellation at each boundary including the serial fallback.

Testing

  • Built locally (Debug, tests and benchmarks enabled).
  • At e98c88fb4e, 207 cases pass across pqc_tests, script_p2mr_tests, wallet_p2mr_parallel_signing_tests, wallet_p2mr_batch_reservation_tests, wallet_tests, feebumper_tests, scriptpubkeyman_tests, and walletdb_tests, including qt: move P2MR fee bump signing off the GUI thread #146's reservation-boundary tests. The full 1,275-case suite passed before the observer follow-up.
  • Docker lint passes on a clean clone of e98c88fb4e.
  • Twelve coordinator mutation variants are caught, with every restored named test passing: foreign-input fallback/error/completion mistakes, sighash context/index errors, early signing, reservation retry, rolled-back memory counters, cancellation guard/latch/error loss, and signing outside the reserved range. Actual CPQCKey::Sign calls are ordered against durable database commits.
  • Not run: post-commit raw signer failure injection at the real wallet entry (accepted instrumentation gap) and real-storage timing. Independent adversarial review is pending and will follow PR creation.

Measurements

These measurements were collected at b7f0fcebf6, before the primitive-observer follow-up; its overhead has not been measured.

Three paired processes per arm (A/B, B/A, A/B), on an Apple M5 Max, 18 cores, macOS 26.4, Apple clang 17, Release. Each mixed transaction spends 25 internal and 25 external inputs with four configured workers per provider. Baseline compiles out the foreign-input skip; candidate retains it. All six processes exited 0 and independently verified every completed transaction.

Mixed case, hook detached Baseline Candidate
Raw elapsed times (s) 13.455341, 13.599356, 13.561552 6.860967, 6.456946, 6.889978
Median (range), s 13.561552 (13.455341–13.599356) 6.860967 (6.456946–6.889978)
Durable commits 26 2
Signatures / counter delta 50 / 50 50 / 50

With the recorder attached, the candidate made exactly one durable commit per descriptor, reserving 25 counters each; baseline made 25 serial commits for one descriptor plus one batch for the other. The external-only control used one commit in both arms. These are shared-host measurements using an in-memory test database; real-storage cost and production speedup remain unmeasured. Hook-on and hook-off samples do not isolate instrumentation overhead.

Target Branch

Risk / Review Notes

  • Consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.
  • No consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.

Notes: wallet signing. Required invariants: no signature before durable reservation and no counter reuse. A scoped, null-by-default observer now checks actual signing calls against earlier successful reservations and rejects repeated counter use. Installation and removal require quiescent signing threads; callbacks are synchronized in wallet tests. The cryptographic backend is unchanged. Whole-transaction completion and refusal of serial retries after reservation failure were verified by coordinator mutation checks. Known pre-existing limitation, unchanged: when a provider does fall back to serial signing, the serial loop re-signs already-complete P2MR inputs it owns and consumes fresh counters. Transactions mixing P2MR and non-P2MR inputs still sign serially.

Docs / Process Impact

Choose exactly one:

  • I updated public docs because this PR changes user-visible behavior, integration guidance, release/process guidance, or expected validation.
  • No public docs update needed. Reason: no RPC, option or default change; cancellation semantics for the GUI are unchanged.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Review follow-up

  • Initialize all fixture fields for compilers that treat missing aggregate initializers as errors.
  • Recognize already-satisfied foreign P2MR leaves using the full spent-output context, including no-work retries.
  • Revalidate every replacement input against live coins and mempool spenders from the same snapshot. This also addresses the inherited fee-bump review finding: an unseen conflict cannot be hidden by a cached wallet parent. The original replacement lineage remains allowed.
  • Regression tests reproduced both unseen mempool conflicts and spent wallet outputs before the fix, plus the false provider error on a valid foreign witness.
  • Validation: build with warnings treated as errors, 210 targeted regression tests, wallet_bumpfee.py, and Docker lint all passed. The dependency on qt: move P2MR fee bump signing off the GUI thread #146 remains.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T20:09:03.922932Z 4a475ae New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e98c88fb4e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/wallet/feebumper.cpp Resolved

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c8e658b80

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/wallet/feebumper.cpp Resolved

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b45d02848

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/qt/walletmodel.cpp Resolved
kiwidream and others added 8 commits September 18, 2026 12:03
A parallel signing provider used to fall back to serial signing for its
whole descriptor as soon as it met an input it could not plan, such as
an input owned by another descriptor. A transaction spending from the
external and internal P2MR descriptors therefore made one durable
counter commit per signature for the first descriptor.

Plan strictly foreign inputs (no complete plan, no invalid existing
P2MR signature, and no signable key in any leaf the provider sees) as
skipped: they get no jobs, stay untouched and keep an error at their
original index, so a provider never reports the transaction complete
while one exists. Every other planning bailout keeps its serial
fallback. A provider whose own inputs are all complete and that only
sees foreign inputs reports failure instead of falling back to serial
signing, which would re-sign the complete inputs and reserve fresh
counters. Signing progress seeds only complete inputs so the completed
count stays monotonic across descriptors.

Cancellation now applies to the whole wallet signing operation: once
the caller declines, later callbacks decline too, so the next
descriptor stops before its reservation boundary and "Signing
cancelled" is preserved. Counters an earlier descriptor committed stay
consumed; a retry of the same transaction reuses its witnesses.

Refs #155

Co-Authored-By: Claude Opus 5 <[email protected]>
MixedManagersPreserveSighashContext completes its unowned input with a
constructed provider before the wallet signs. Doing that through the
parallel planner made the fixture depend on the code under test, so a
planner regression failed the fixture instead of the wallet signing
assertions. Sign the fixture input serially.

Refs #155

Co-Authored-By: Claude Opus 5 <[email protected]>
Verify unknown foreign leaves with the complete spent-output context before classifying them as incomplete. Cover a valid nonstandard leaf during a batch and a no-work retry.
Read live coins and mempool spenders from the same snapshot before committing a replacement. Reject conflicts whose wallet notifications are pending while allowing the original replacement lineage. Cover unseen mempool conflicts, spent wallet coins, and normal replacement.
Hoist the fee-bump commit results into named locals so the assertion
macro's repeated expansion does not read a moved-from transaction.
Reserve the spent-output vectors before the loops that fill them.
A backward reorg during asynchronous signing can leave the replacement's
anti-fee-sniping nLockTime ahead of the tip. Revalidation covered coins,
fees, size, and chain limits, so the wallet recorded the replacement and
marked the original replaced while the broadcast failed. Check finality
against the current tip using the rule the mempool applies on accept.
@kiwidream
kiwidream force-pushed the kiwidream/batch-mixed-descriptor-signing branch from 4a475ae to f542422 Compare September 18, 2026 16:04
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@kiwidream
kiwidream merged commit 787504b into 1.x.x Sep 22, 2026
37 checks passed
kiwidream added a commit that referenced this pull request Sep 22, 2026
Resolve src/test/pqc_tests.cpp: keep this branch's verification-counter
case and the base's signing-observer case (from #163) side by side, and
take the base's <optional> include.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
kiwidream added a commit that referenced this pull request Sep 25, 2026
#163 changed the refusal branch in CPQCKey::Sign() to report the outcome
to the signing observer, so it now ends in `return finish(false);`. The
coverage checker still looked for `return false;`, found no match and
stopped before evaluating any named seed.

Anchor the full current refusal line. The token is still the `return`
of that single-line `if`, so the count is the refusal branch rather than
the condition, and the separate `return finish(false);` taken when
slh_dsa_sign fails is not matched. The legacy-import-corrupted-secret
expectation is unchanged.

Nothing tested resolve_anchor itself, so add unit tests that a stale,
ambiguous or token-less anchor still fails, that a multi-line anchor
resolves its token on the last line, and that the refusal anchor
resolves to its own return. --anchors-only runs them.

The llvm-cov coverage run and libFuzzer mutation were not measured for
this change, so #173 stays open until they are.

Refs #173

Co-authored-by: Claude <[email protected]>
kiwidream added a commit that referenced this pull request Oct 22, 2026
Add doc/release-notes-1.0.1.md covering every change merged to 1.x.x
since the signed v1.0.0 tag, grouped as #174 asks: wallet fixes, the
-fallbackfee default (#151), signing-usage visibility, validation and
performance work, release engineering, and known limitations.

The three pull requests #174 expects in the release that had not merged
when this was drafted (#176, #177, #178) are marked "pending merge", and
a Maintainer TODO section at the top lists what must be resolved before
the file is passed to the publisher: those markers, the exact P2MR v1
conformance sentence, the platform-signing disposition (#70), and the
fuzz evidence status (#173). No speedup is claimed for the signature
cache (#162) or descriptor batching (#163) because no measurement
accompanies the release.

The per-PR fragments doc/release-notes-150.md and doc/release-notes-151.md
are folded into the notes and left in place, as the v1.0.0 release did
with its fragments.

Refs #174

Co-Authored-By: Claude <[email protected]>
kiwidream added a commit that referenced this pull request Nov 2, 2026
Address the independent review of the v1.0.1 notes:
- record that DerivePQCKey still leaves HD seed material and HKDF state
  in its own stack frame, which #268's library wipe does not reach and
  #270 would clear, and qualify the summary and the #268 entry;
- qualify #163's retry claim and record its pre-existing serial-fallback
  re-signing as a known limitation;
- say how v1.0.0 receivers handle headers messages cut short for size,
  matching the Known limitations entry;
- list every installed Linux binary in the upgrade steps;
- say that docs.qbit.org is already served by the earlier Pages workflow
  and only the versioned site from #148 is undeployed;
- give the nightly fuzz mutation phase the Known limitations entry its
  pointer refers to, and credit #164 for the Qt shutdown-test fix.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 4, 2026
Address the independent review of the v1.0.1 notes:
- record that DerivePQCKey still leaves HD seed material and HKDF state
  in its own stack frame, which #268's library wipe does not reach and
  #270 would clear, and qualify the summary and the #268 entry;
- qualify #163's retry claim and record its pre-existing serial-fallback
  re-signing as a known limitation;
- say how v1.0.0 receivers handle headers messages cut short for size,
  matching the Known limitations entry;
- list every installed Linux binary in the upgrade steps;
- say that docs.qbit.org is already served by the earlier Pages workflow
  and only the versioned site from #148 is undeployed;
- give the nightly fuzz mutation phase the Known limitations entry its
  pointer refers to, and credit #164 for the Qt shutdown-test fix.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 4, 2026
Release notes:
- fallback fee (#307): the floor is only this node's minimum relay fee,
  -mintxfee and mempool minimum. Peers with a higher minimum, or a
  congested network, may not relay or mine a fallback-rate send until its
  fee is bumped. Note the bump cost for P2MR, -fallbackfee=0 for services
  that prefer failure, and the 60-hour estimate staleness;
- #268 cost (#311): production mode pins the library's SHA-2 to its
  portable code on every platform, so SHA-NI, ARMv8 SHA and CommonCrypto
  are never used; AVX2 still speeds up keygen and signing. Restate the
  measured figures for that backend, drop the SHA-NI and test-knob-only
  scalar figures, list what was not measured, and remove the CommonCrypto
  clause from the stack-wipe limitation;
- low-work headers sync (#309) cannot complete from any peer through a
  dense AuxPoW range and retries at each announcement;
- the -15 encryptwallet wording, the libexec binaries in the upgrade
  steps (#339), the #163 planner wording (#330), the #337 docs deploy,
  and drop "reviewed" from the summary (#315).

doc/user/bitcoin-core-differences.md (#330): add the 1 MiB P2MR stack-byte
policy limit and its reject reason, and correct the data-signature charge
to 3,683 with the testnet4 and regtest legacy cases.

doc/subtrees/libbitcoinpqc.md (#333): direct library calls need about
17 KiB of stack; qbit's CPQCKey and DerivePQCKey calls need at least
32 KiB plus frames for the #270 wipe.

Remove the v1.0.0 fragments release-notes-95, -102, -128 and -132 (#340),
which shipped at v1.0.0 and are referenced nowhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 5, 2026
Address the independent review of the v1.0.1 notes:
- record that DerivePQCKey still leaves HD seed material and HKDF state
  in its own stack frame, which #268's library wipe does not reach and
  #270 would clear, and qualify the summary and the #268 entry;
- qualify #163's retry claim and record its pre-existing serial-fallback
  re-signing as a known limitation;
- say how v1.0.0 receivers handle headers messages cut short for size,
  matching the Known limitations entry;
- list every installed Linux binary in the upgrade steps;
- say that docs.qbit.org is already served by the earlier Pages workflow
  and only the versioned site from #148 is undeployed;
- give the nightly fuzz mutation phase the Known limitations entry its
  pointer refers to, and credit #164 for the Qt shutdown-test fix.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 5, 2026
Release notes:
- fallback fee (#307): the floor is only this node's minimum relay fee,
  -mintxfee and mempool minimum. Peers with a higher minimum, or a
  congested network, may not relay or mine a fallback-rate send until its
  fee is bumped. Note the bump cost for P2MR, -fallbackfee=0 for services
  that prefer failure, and the 60-hour estimate staleness;
- #268 cost (#311): production mode pins the library's SHA-2 to its
  portable code on every platform, so SHA-NI, ARMv8 SHA and CommonCrypto
  are never used; AVX2 still speeds up keygen and signing. Restate the
  measured figures for that backend, drop the SHA-NI and test-knob-only
  scalar figures, list what was not measured, and remove the CommonCrypto
  clause from the stack-wipe limitation;
- low-work headers sync (#309) cannot complete from any peer through a
  dense AuxPoW range and retries at each announcement;
- the -15 encryptwallet wording, the libexec binaries in the upgrade
  steps (#339), the #163 planner wording (#330), the #337 docs deploy,
  and drop "reviewed" from the summary (#315).

doc/user/bitcoin-core-differences.md (#330): add the 1 MiB P2MR stack-byte
policy limit and its reject reason, and correct the data-signature charge
to 3,683 with the testnet4 and regtest legacy cases.

doc/subtrees/libbitcoinpqc.md (#333): direct library calls need about
17 KiB of stack; qbit's CPQCKey and DerivePQCKey calls need at least
32 KiB plus frames for the #270 wipe.

Remove the v1.0.0 fragments release-notes-95, -102, -128 and -132 (#340),
which shipped at v1.0.0 and are referenced nowhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 11, 2026
Address the independent review of the v1.0.1 notes:
- record that DerivePQCKey still leaves HD seed material and HKDF state
  in its own stack frame, which #268's library wipe does not reach and
  #270 would clear, and qualify the summary and the #268 entry;
- qualify #163's retry claim and record its pre-existing serial-fallback
  re-signing as a known limitation;
- say how v1.0.0 receivers handle headers messages cut short for size,
  matching the Known limitations entry;
- list every installed Linux binary in the upgrade steps;
- say that docs.qbit.org is already served by the earlier Pages workflow
  and only the versioned site from #148 is undeployed;
- give the nightly fuzz mutation phase the Known limitations entry its
  pointer refers to, and credit #164 for the Qt shutdown-test fix.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 11, 2026
Release notes:
- fallback fee (#307): the floor is only this node's minimum relay fee,
  -mintxfee and mempool minimum. Peers with a higher minimum, or a
  congested network, may not relay or mine a fallback-rate send until its
  fee is bumped. Note the bump cost for P2MR, -fallbackfee=0 for services
  that prefer failure, and the 60-hour estimate staleness;
- #268 cost (#311): production mode pins the library's SHA-2 to its
  portable code on every platform, so SHA-NI, ARMv8 SHA and CommonCrypto
  are never used; AVX2 still speeds up keygen and signing. Restate the
  measured figures for that backend, drop the SHA-NI and test-knob-only
  scalar figures, list what was not measured, and remove the CommonCrypto
  clause from the stack-wipe limitation;
- low-work headers sync (#309) cannot complete from any peer through a
  dense AuxPoW range and retries at each announcement;
- the -15 encryptwallet wording, the libexec binaries in the upgrade
  steps (#339), the #163 planner wording (#330), the #337 docs deploy,
  and drop "reviewed" from the summary (#315).

doc/user/bitcoin-core-differences.md (#330): add the 1 MiB P2MR stack-byte
policy limit and its reject reason, and correct the data-signature charge
to 3,683 with the testnet4 and regtest legacy cases.

doc/subtrees/libbitcoinpqc.md (#333): direct library calls need about
17 KiB of stack; qbit's CPQCKey and DerivePQCKey calls need at least
32 KiB plus frames for the #270 wipe.

Remove the v1.0.0 fragments release-notes-95, -102, -128 and -132 (#340),
which shipped at v1.0.0 and are referenced nowhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 12, 2026
Address the independent review of the v1.0.1 notes:
- record that DerivePQCKey still leaves HD seed material and HKDF state
  in its own stack frame, which #268's library wipe does not reach and
  #270 would clear, and qualify the summary and the #268 entry;
- qualify #163's retry claim and record its pre-existing serial-fallback
  re-signing as a known limitation;
- say how v1.0.0 receivers handle headers messages cut short for size,
  matching the Known limitations entry;
- list every installed Linux binary in the upgrade steps;
- say that docs.qbit.org is already served by the earlier Pages workflow
  and only the versioned site from #148 is undeployed;
- give the nightly fuzz mutation phase the Known limitations entry its
  pointer refers to, and credit #164 for the Qt shutdown-test fix.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 12, 2026
Release notes:
- fallback fee (#307): the floor is only this node's minimum relay fee,
  -mintxfee and mempool minimum. Peers with a higher minimum, or a
  congested network, may not relay or mine a fallback-rate send until its
  fee is bumped. Note the bump cost for P2MR, -fallbackfee=0 for services
  that prefer failure, and the 60-hour estimate staleness;
- #268 cost (#311): production mode pins the library's SHA-2 to its
  portable code on every platform, so SHA-NI, ARMv8 SHA and CommonCrypto
  are never used; AVX2 still speeds up keygen and signing. Restate the
  measured figures for that backend, drop the SHA-NI and test-knob-only
  scalar figures, list what was not measured, and remove the CommonCrypto
  clause from the stack-wipe limitation;
- low-work headers sync (#309) cannot complete from any peer through a
  dense AuxPoW range and retries at each announcement;
- the -15 encryptwallet wording, the libexec binaries in the upgrade
  steps (#339), the #163 planner wording (#330), the #337 docs deploy,
  and drop "reviewed" from the summary (#315).

doc/user/bitcoin-core-differences.md (#330): add the 1 MiB P2MR stack-byte
policy limit and its reject reason, and correct the data-signature charge
to 3,683 with the testnet4 and regtest legacy cases.

doc/subtrees/libbitcoinpqc.md (#333): direct library calls need about
17 KiB of stack; qbit's CPQCKey and DerivePQCKey calls need at least
32 KiB plus frames for the #270 wipe.

Remove the v1.0.0 fragments release-notes-95, -102, -128 and -132 (#340),
which shipped at v1.0.0 and are referenced nowhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 12, 2026
* doc: add v1.0.1 release notes

Cover every pull request merged to 1.x.x since the signed v1.0.0 tag,
through #252. List the behavior changes first: the -fallbackfee default
(#151), fee-only send entries (#150), and the encryptwallet overlap
error code moving from -16 to -15 (#183).

Record the release's known limitations: the unsigned-platform waiver
(#70), the depth of the fuzz evidence (#173), and scheduled-workflow
deployment (#152, #158). The required P2MR v1 conformance statement
names the signed tag target and the oracle report digest, so the
in-tree notes point to the release page, and the publish-time notes
file carries the exact statement.

Fold the #150 and #151 fragments into these notes and remove them.

Refs #174

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* build: bump version to v1.0.1

Set CLIENT_VERSION_BUILD to 1 so the source identifies as v1.0.1, the
maintenance release proposed in #174. It ships without a release
candidate, so CLIENT_VERSION_RC stays 0. CLIENT_VERSION_IS_RELEASE stays
true: 1.x.x is the release line, so its binaries carry no commit suffix,
as for v1.0.0. CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR and
CLIENT_VERSION_PHASE are unchanged.

CLIENT_VERSION_STRING becomes 1.0.1, so every binary reports v1.0.1,
the user agent is /qbit:1.0.1/, the Windows installer metadata and the
RPC docs manifest derive from the same string, and Guix and the
release validators derive 1.0.1 from a v1.0.1 tag.

Regenerate the manual pages from the built binaries with
contrib/devtools/gen-manpages.py (help2man 1.49.3). Only the version
and date lines change.

util_tests/test_FormatSubVersion expected the "Test" client name to
format as CLIENT_VERSION_STRING. FormatSubVersion uses that string only
for the qbit user agent and formats any other name numerically, so the
check holds only while the version has no phase or release-candidate
suffix. Expect the numeric form built from the version components,
which holds for every version. The qbit user-agent checks on the next
lines still cover CLIENT_VERSION_STRING.

No other tracked file carries the release version. The README and doc
mentions of v1.0.0 describe the launch source, and the 1.0.0 entries in
the workflows are branch names, so they are left alone.

Refs #174

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: add the release-gate fixes to the v1.0.1 release notes

Fold the release-notes fragments of #264, #265, #266 and #268 into
doc/release-notes-1.0.1.md and delete them, and write the #263 entry
from its pull request. #263's new P2MR stack-byte standardness rule is
also listed under the behavior changes.

Correct claims these merges made stale:
- the fuzz-evidence limitation said later changes touch no fuzzed code;
  #263 and #265 change the interpreter that p2mr_script runs, and #268
  replaces the library that pqc and p2mr_script call, so fresh evidence
  on the release source is now required before tagging;
- the #162 entry said data signatures are unchanged (#265 caches them);
- the no-measurement line now points to #268's library cost figures;
- the #252 entry now notes the later #264 and #263 profile edits.

Also correct the #183 entry, which said every other encryptwallet
failure returns -16; some return -4 or -8.

Record the deferred items under Known limitations: the consensus
stack-byte cap (#257), uncached failed PQC signature checks (#259), and
the remaining AuxPoW limits and open review notes from #266 (#258).

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: record the remaining v1.0.1 limitations in the release notes

Address the independent review of the v1.0.1 notes:
- record that DerivePQCKey still leaves HD seed material and HKDF state
  in its own stack frame, which #268's library wipe does not reach and
  #270 would clear, and qualify the summary and the #268 entry;
- qualify #163's retry claim and record its pre-existing serial-fallback
  re-signing as a known limitation;
- say how v1.0.0 receivers handle headers messages cut short for size,
  matching the Known limitations entry;
- list every installed Linux binary in the upgrade steps;
- say that docs.qbit.org is already served by the earlier Pages workflow
  and only the versioned site from #148 is undeployed;
- give the nightly fuzz mutation phase the Known limitations entry its
  pointer refers to, and credit #164 for the Qt shutdown-test fix.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: add the area-review findings to the v1.0.1 release notes

Release notes:
- add an Updated RPCs section: bumpfee rejects a replacement whose
  signer changed anything but input signatures, and revalidates the
  replacement at commit time (#167, which shipped the unmerged #146);
  send entries can omit vout, address and label (#150); list the new
  bumpfee failures under the behavior changes as well;
- restate #268's cost from the release review's measurements, with the
  SHA backends they cover;
- add Known limitations for per-descriptor PQC signature counters, the
  qbit-qt Send dialog signing while it prepares, and the platforms on
  which the libbitcoinpqc stack-wipe depth is verified.

doc/consensus/p2mr-v1.md: correct the non-normative section 9 sentence
from #264, which implied wallet-wide per-key counting. Wallet counters
enforce the 2^30 contract per descriptor and per wallet copy. No
normative text changes, but the specification bytes do, so the P2MR v1
consensus review must cite a commit that contains this change.

share/examples/qbit.conf: show the -fallbackfee default from #151, as
contrib/devtools/gen-qbit-conf.sh generates it. The generator's other
difference, the lock debug category, appears only in Debug builds and
is left out.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: cover #270, #277 and #289 and the deferred review findings in the v1.0.1 notes

The notes predated #270, #277 and #289, and the 2026-11-04 review of the
v1.0.1 change set found that they left out the deferred wallet and IPC
findings.

- #270: a normal entry replaces the DerivePQCKey known limitation and the
  qualifiers in the summary and #268's entry. The 17 KiB figure is scoped
  to the library, and qbit's calls need at least 32 KiB for the new wipe.
- #277: fold in release-notes-277.md. How to Upgrade gains the guidance
  for wallets encrypted by v1.0.0 that may still hold unencrypted PQC keys,
  and a downgrade statement.
- #289: fold in release-notes-278.md as a new Mining interface section, and
  add the IPC client requirement under Behavior changes.
- Known limitations add the deferred findings #279-#296 and #304, each with
  what users should do. The #143 entry now says which paths resume a pending
  keypool refill.
- The fuzz-anchor entry and the fuzz-evidence caveat cover #270 and #342.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: correct v1.0.1 notes and docs from the release review

Release notes:
- fallback fee (#307): the floor is only this node's minimum relay fee,
  -mintxfee and mempool minimum. Peers with a higher minimum, or a
  congested network, may not relay or mine a fallback-rate send until its
  fee is bumped. Note the bump cost for P2MR, -fallbackfee=0 for services
  that prefer failure, and the 60-hour estimate staleness;
- #268 cost (#311): production mode pins the library's SHA-2 to its
  portable code on every platform, so SHA-NI, ARMv8 SHA and CommonCrypto
  are never used; AVX2 still speeds up keygen and signing. Restate the
  measured figures for that backend, drop the SHA-NI and test-knob-only
  scalar figures, list what was not measured, and remove the CommonCrypto
  clause from the stack-wipe limitation;
- low-work headers sync (#309) cannot complete from any peer through a
  dense AuxPoW range and retries at each announcement;
- the -15 encryptwallet wording, the libexec binaries in the upgrade
  steps (#339), the #163 planner wording (#330), the #337 docs deploy,
  and drop "reviewed" from the summary (#315).

doc/user/bitcoin-core-differences.md (#330): add the 1 MiB P2MR stack-byte
policy limit and its reject reason, and correct the data-signature charge
to 3,683 with the testnet4 and regtest legacy cases.

doc/subtrees/libbitcoinpqc.md (#333): direct library calls need about
17 KiB of stack; qbit's CPQCKey and DerivePQCKey calls need at least
32 KiB plus frames for the #270 wipe.

Remove the v1.0.0 fragments release-notes-95, -102, -128 and -132 (#340),
which shipped at v1.0.0 and are referenced nowhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: update the v1.0.1 release notes for the changes merged since 2026-11-05

Fold in #297, #298, #299, #319, #344, #346, #347 and #348 from the
reviewed draft, and #300, #301, #343 and #353 from their fragments:
the post-encryption rewrite and its disk space and first-load cost, the
re-encryption of PQC keys v1.0.0 left unencrypted and how to unlock for
it in qbit-qt, the new backupwallet and getwalletinfo fields, PSBT Sign
re-entrancy, and the macOS debug symbol archives. Update the How to
Upgrade, downgrade, #277 and Known limitations text these change, remove
the limitations fixed since, and extend the fuzz-evidence list.

Delete the per-PR fragments the notes now cover.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: regenerate the v1.0.1 manual pages

Regenerate doc/man with contrib/devtools/gen-manpages.py from binaries
built at the merged tree. Apart from the date, only the -discardfee help
in qbitd.1 and qbit-qt.1 changes, for the limit #346 added when there is
no fee estimate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: correct the v1.0.1 release notes from the launch review

- #268: libbitcoinpqc v0.3.2 verification is about 7 to 8% slower in a
  production-mode x86-64 micro-benchmark, from the wipe of the SHA-256
  and SHA-512 finalize buffers it added, and a mainnet
  -reindex-chainstate on the same machine took about 5 to 8% longer
  than with v1.0.0. The notes said verification showed no change, and
  that no throughput or IBD measurement accompanied the release.
- #293 is fixed by #300 (DelAddressBook takes cs_wallet before its
  transaction): move it from Known limitations to Wallet fixes.
- #166: the Sign/Verify dialog shows the lowercase state name, such as
  "normal".
- #266: add the mainnet mixed-version sync result and the advice to
  upgrade nodes that accept inbound connections first.
- Add known limitations for #364 (PSBT Save's file dialog leaves Sign
  and Close reachable through accessibility tools) and #365 (coin
  control's change preview).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: regenerate the example config and drop an internal note from the v1.0.1 notes

Regenerate share/examples/qbit.conf with contrib/devtools/gen-qbit-conf.sh
from the v1.0.1 build, so the -discardfee description carries the sentence
that #346 added to the help, as the regenerated manual pages do. The
"lock" debug category is only compiled into builds with
DEBUG_LOCKCONTENTION, so a release build does not list it.

Drop the known-limitations item about the scope of the release readiness
inspection: it describes release-process status, not a limitation users
need to know about.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: cover the PRs merged since the last v1.0.1 notes update

Add entries for the eleven PRs merged into 1.x.x after 0a936d6:
#379 (walletpassphrasechange keeps the lock state) under Wallet fixes
and Updated RPCs, #352 and #354 with the other qbit-qt fixes, folded
from their fragments, #380 (NODE_WITNESS_PRUNED only from a peer's own
version message) with the P2P changes, #381 in a new PHOTON section,
and #371, #374, #375, #376, #377 and #385 under release engineering
and CI.

Mention the new fixes in the summary, update the encryptwallet and
shutdown Known limitations for #352 and #354 (#349 is fixed), and add
the new PRs to the fuzz-evidence list, with #380's addrman and
net_processing change and the inherited targets that reach it.

Delete the folded fragments release-notes-352.md and -354.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: cover the PRs merged for v1.0.1 since the last notes update

Fold in #378, #386 with #422's edits, #411, #418 and #419 from their
fragments, carry #411's edits to the deleted #304 fragment into the
walletpassphrase text, and add entries for #387, #410, #414 and #415.

Behavior changes add the P2MR hashing standardness rule (#415), the
per-peer budget for validating rejected transactions with its debug-only
-txvalidationbudget option (#386, #422), and walletpassphrase refilling
the P2MR keypools before it returns, with the timeout counting from the
end of the refill and a new -4 error on failure (#411). How to Upgrade
adds the reconsiderblock line, and the qbit-photon interoperability
sentence now matches #410.

Known limitations drop #296, which #418 fixes, update the uncached failed
PQC signature bullet for the validation budget, and extend the
fuzz-evidence caveat with #386, #414, #415 and #422 and the inherited
targets that reach them.

Delete the per-PR fragments the notes now cover.

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
* wallet: batch P2MR counters per descriptor in mixed spends

A parallel signing provider used to fall back to serial signing for its
whole descriptor as soon as it met an input it could not plan, such as
an input owned by another descriptor. A transaction spending from the
external and internal P2MR descriptors therefore made one durable
counter commit per signature for the first descriptor.

Plan strictly foreign inputs (no complete plan, no invalid existing
P2MR signature, and no signable key in any leaf the provider sees) as
skipped: they get no jobs, stay untouched and keep an error at their
original index, so a provider never reports the transaction complete
while one exists. Every other planning bailout keeps its serial
fallback. A provider whose own inputs are all complete and that only
sees foreign inputs reports failure instead of falling back to serial
signing, which would re-sign the complete inputs and reserve fresh
counters. Signing progress seeds only complete inputs so the completed
count stays monotonic across descriptors.

Cancellation now applies to the whole wallet signing operation: once
the caller declines, later callbacks decline too, so the next
descriptor stops before its reservation boundary and "Signing
cancelled" is preserved. Counters an earlier descriptor committed stay
consumed; a retry of the same transaction reuses its witnesses.

Refs #155

Co-Authored-By: Claude Opus 5 <[email protected]>

* test: pre-sign unowned P2MR input serially in sighash case

MixedManagersPreserveSighashContext completes its unowned input with a
constructed provider before the wallet signs. Doing that through the
parallel planner made the fixture depend on the code under test, so a
planner regression failed the fixture instead of the wallet signing
assertions. Sign the fixture input serially.

Refs #155

Co-Authored-By: Claude Opus 5 <[email protected]>

* test: observe actual PQC signing after durable reservation

* test: initialize all mixed-signing fixture fields

* script: recognize satisfied foreign P2MR witnesses

Verify unknown foreign leaves with the complete spent-output context before classifying them as incomplete. Cover a valid nonstandard leaf during a batch and a no-work retry.

* wallet: revalidate fee-bump inputs against live spends

Read live coins and mempool spenders from the same snapshot before committing a replacement. Reject conflicts whose wallet notifications are pending while allowing the original replacement lineage. Cover unseen mempool conflicts, spent wallet coins, and normal replacement.

* test: satisfy tidy checks in new fee-bump and P2MR coverage

Hoist the fee-bump commit results into named locals so the assertion
macro's repeated expansion does not read a moved-from transaction.
Reserve the spent-output vectors before the loops that fill them.

* wallet: reject non-final fee-bump replacements

A backward reorg during asynchronous signing can leave the replacement's
anti-fee-sniping nLockTime ahead of the tip. Revalidation covered coins,
fees, size, and chain limits, so the wallet recorded the replacement and
marked the original replaced while the broadcast failed. Check finality
against the current tip using the rule the mempool applies on accept.

---------

Co-authored-by: Claude Opus 5 <[email protected]>
kiwidream added a commit that referenced this pull request Nov 12, 2026
#163 changed the refusal branch in CPQCKey::Sign() to report the outcome
to the signing observer, so it now ends in `return finish(false);`. The
coverage checker still looked for `return false;`, found no match and
stopped before evaluating any named seed.

Anchor the full current refusal line. The token is still the `return`
of that single-line `if`, so the count is the refusal branch rather than
the condition, and the separate `return finish(false);` taken when
slh_dsa_sign fails is not matched. The legacy-import-corrupted-secret
expectation is unchanged.

Nothing tested resolve_anchor itself, so add unit tests that a stale,
ambiguous or token-less anchor still fails, that a multi-line anchor
resolves its token on the last line, and that the refusal anchor
resolves to its own return. --anchors-only runs them.

The llvm-cov coverage run and libFuzzer mutation were not measured for
this change, so #173 stays open until they are.

Refs #173

Co-authored-by: Claude <[email protected]>
kiwidream added a commit that referenced this pull request Nov 12, 2026
## Summary

This lands the v1.0.1 release branch on `main` as one commit, the same way `main` received v1.0.0 in #135. The `v1.0.1` tag will then be created on the resulting `main` commit.

- **Source:** release branch `1.x.x` at `a7a70660ad6ecadbf77b89bc2fe85ba068a86a71`, this PR's head before the signed squash. `main` (`70fea84f5b`) is an ancestor of that commit, so the squash has exactly its tree: `35a01d570ceef5984ae84e15d4dc74adecb587be`.
- **Signing:** the release coordinator squashes the head into one commit and signs it with `squash-sign`. The tree does not change.
- **Rebuilt head:** this branch replays the 75 commits of `1.x.x` since `main` (`70fea84f5b..a7a7066`) with their trees, messages and authors unchanged, so their SHAs differ from `1.x.x`'s. The one change: #268 (`e374ba24cf`) is split into its pure libbitcoinpqc v0.3.2 import, which carries the subtree's directory and split (`1965d0da1e`) trailers, and the rest of #268. That way the squash keeps the subtree trailer that `test/lint/libbitcoinpqc-subtree-check.sh` needs on `main`. Without it, the check would find v0.1.1's split `ac72d1ffa0` and fail. The final tree is still `35a01d570ceef5984ae84e15d4dc74adecb587be`.

## Validation of this tree (on `a7a70660ad`)

- Full Validation [43271045040](https://github.com/Qbit-Org/qbit/actions/runs/43271045040): passed.
- Required Merge Gate [43271044819](https://github.com/Qbit-Org/qbit/actions/runs/43271044819): passed.
- Core Checks [43271044808](https://github.com/Qbit-Org/qbit/actions/runs/43271044808), including the `mainnet publication posture` job: passed.
- Nightly CI [43273463067](https://github.com/Qbit-Org/qbit/actions/runs/43273463067): dispatched on this commit. Its scanner results are triaged, and one job is being re-run after a runner infrastructure failure.
- The release notes are `doc/release-notes-1.0.1.md`, from #181. The freeze and the changes since v1.0.0 are tracked in #174.

## Review

Please review the release as a whole against `v1.0.0` (`git diff v1.0.0 a7a7066`), or through the individual `1.x.x` PRs listed in #174 and the release notes. This PR adds nothing beyond `1.x.x` at `a7a70660ad`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Squashed commits:
5aa60b3 fix: resolve finalized mainnet CI failures (#137)
b83f87d wallet: avoid deferred keypool unlock deadlock (#143)
0716a7c qt: move PSBT signing off GUI thread (#145)
141a9de Build versioned RPC docs pages (#148)
73c064a test: stabilize REST chaininfo comparison (#149)
508c6ea wallet: default -fallbackfee to the minimum relay fee (#151)
6f703b6 wallet: publish descriptor top-ups after commit (#144)
f9172e8 wallet: show fee-only change-only self-transfers (#150)
6de89ab qt: show consumed PQC usage when a generated proof fails verification (#129) (#161)
9084d83 fuzz: seed qbit targets and verify replay and mutation (#164)
df533c5 qt: preserve and display consumed PQC usage in transaction signing flows (#167)
fc835f4 ci: run classifier tests in Required Merge Gate (#160)
2053d83 release: fail closed when the release asset list cannot be read (#170)
7f11260 ci: harden the Required Merge Gate check-run poller (#171)
5b80d5f ci: validate maintained source in scheduled heavy workflows (#165)
4873900 wallet: batch P2MR counters across mixed descriptors (#163)
19043e0 script: cache successful P2MR PQC signature checks (#162)
b262cd0 ci: forward IBD workflow timeout inputs to the harness flags (#159)
4b89e4a doc: correct the v1.0.0 release trust record (#175)
0d2de1e fuzz: repair stale pqc_sign_refused coverage anchor (#176)
0954b74 qt: keep fee-bump PQC usage visible without a notification backend (#177)
3ccf788 qt: keep Encrypt Wallet responsive during existing-wallet encryption (#178)
6d6cc7d wallet: close races around CWallet::EncryptWallet (#183)
54f6737 qt: answer address labels from the table model during wallet encryption (#182)
1339e6b doc: fix pipe rendering and tighten P2MR v1 consensus profile (#252)
422ba0e doc: document bounded30 usage-dependent security margin and raw-key counter limits (#264)
981605a script: cache verified P2MR data-signature checks (v1.0.1) (#265)
a5292af policy: bound P2MR runtime stack bytes (#263)
d3b02f4 net: bound the size of headers messages we send (#266)
0c60e64 Squashed 'src/libbitcoinpqc/' changes from ac72d1ffa0..1965d0da1e
2f6992b subtree: import libbitcoinpqc v0.3.2 signer stack scrub (#268)
cbb1961 crypto: clear stack released by PQC secret-key operations (#270)
260ac73 wallet: take descriptor locks before EncryptWallet's transaction (#277)
243065c mining: reset cached block checks in IPC submitSolution (backport bitcoin/bitcoin#33745) (#289)
bc9f1bd wallet: keep the SQLite lock when probing loaded wallet files (#297)
95b8b9f wallet: fail a send whose inputs a concurrent call spent (#298)
ad3d708 depends: Update Qt to 6.8.4 and fix macOS accessibility use-after-free (#347)
660034c fuzz: re-anchor PQC coverage checks after #270 and run them in CI (#342)
b178391 wallet: deferred P2MR keypool refill at startup and unlock; Lock() waits for key copies (#299)
6700285 test: fix race in p2p_auxpow_headers_size (#358)
f6c2013 qt: fix send confirmation re-entrancy and dialog deletion during confirmation (#348)
1fe12ea wallet: fallback-fee follow-ups for #151 (discard rate, GUI warning, default test, help texts) (#346)
d21acc4 ci: bind the Required Merge Gate to its own event's runs, fail drafts, keep both sides of renames (#345)
a4e1f26 qt: keep PSBT signing results across shutdown, close and unload (#344)
e783923 test: keep wallet_p2mr_deferred_keypool_tests within time limits under sanitizers (#361)
1538eed ci: run runner selection on GitHub-hosted Ubuntu (#362)
1b8d10f qt: ignore PSBT Sign while a signing attempt is in progress (#353)
01a9ab3 contrib: import libbitcoinpqc releases as one verified main-line commit (#360)
5b42181 guix: ship macOS debug symbols as dSYM bundles (#343)
6f080f0 wallet: remove deleted plaintext keys from the wallet file after encryption (#300)
98dbe5b wallet: re-encrypt plaintext PQC keys in encrypted wallets on unlock (#301)
dff82fb ci: allowlist fuzz-seed format tags in the gitleaks scan (#367)
c7c9fbd ci: retry the cargo-audit database fetch and fix the clang analyzer scan (#368)
8ee5231 contrib: add the rulesets for qbit-guix.sigs main (#371)
f8ababf contrib: add public tools to stage, sign and combine release checksums (#374)
c4d88af contrib: keep the release key policy in one place and tighten key-policy continuity checks (#375)
78405ad wallet: keep the lock state when changing the passphrase (#379)
ea99d08 ci: keep the 32-bit ARM nightly unit-test shards within their time limit (#377)
cb1f507 ci: run the mainnet publication posture check on every mainnet line (#385)
6582427 qt: wait for open dialogs before shutdown and wallet unload (#354)
7953475 qt: keep the GUI responsive during wallet encryption started outside it (#352)
0d87213 doc: replace the release docs with a runbook, a publisher reference and a release issue form (#376)
3de5e93 net: only use service bits learned from a direct connection when deciding which addresses to avoid (#380)
565eb46 photon: bound inbound relay state per peer and check blocks before submission (#381)
7b7066f ci: parse gpg status output on newline only and reject other line separators (#387)
b1b0860 net: budget per-peer time spent validating rejected transactions (#386)
3ae934c photon: announce blocks under the low-order bits of their hash (#410)
faaaaa8 wallet: refill P2MR keypools before walletpassphrase returns (#411)
9e74401 wallet: fail descriptor key encryption when the plaintext record is not erased (#418)
e8a796d ipc: return false from submitSolution for a missing or undecodable coinbase (#419)
396940d net: request transactions held back by the validation budget later, and limit each connection's share of the pool (#422)
6ca0132 net, validation: attribute received blocks to their sender and check recovered blocks (#414)
c65bea2 qt: add a play-money poker lobby based on Satoshi's 2009 design (#378)
b3b5096 script: limit standard hashing of large P2MR stack elements (#415)
ca5d4b5 release: prepare v1.0.1 (#181)
b1c6d4e net: pass held-back transaction announcements on at most once per retry delay (#425)

Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Alexander Miller <[email protected]>
Co-authored-by: Sjors Provoost <[email protected]>
Co-authored-by: Fabian Jahr <[email protected]>
Co-authored-by: Dan Hepworth <[email protected]>
git-subtree-dir: src/libbitcoinpqc
git-subtree-split: 1965d0da1eb4d9e196613b8f3a5d0d866a221c53
kiwidream added a commit that referenced this pull request Nov 12, 2026
* doc: add v1.0.1 release notes

Cover every pull request merged to 1.x.x since the signed v1.0.0 tag,
through #252. List the behavior changes first: the -fallbackfee default
(#151), fee-only send entries (#150), and the encryptwallet overlap
error code moving from -16 to -15 (#183).

Record the release's known limitations: the unsigned-platform waiver
(#70), the depth of the fuzz evidence (#173), and scheduled-workflow
deployment (#152, #158). The required P2MR v1 conformance statement
names the signed tag target and the oracle report digest, so the
in-tree notes point to the release page, and the publish-time notes
file carries the exact statement.

Fold the #150 and #151 fragments into these notes and remove them.

Refs #174

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* build: bump version to v1.0.1

Set CLIENT_VERSION_BUILD to 1 so the source identifies as v1.0.1, the
maintenance release proposed in #174. It ships without a release
candidate, so CLIENT_VERSION_RC stays 0. CLIENT_VERSION_IS_RELEASE stays
true: 1.x.x is the release line, so its binaries carry no commit suffix,
as for v1.0.0. CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR and
CLIENT_VERSION_PHASE are unchanged.

CLIENT_VERSION_STRING becomes 1.0.1, so every binary reports v1.0.1,
the user agent is /qbit:1.0.1/, the Windows installer metadata and the
RPC docs manifest derive from the same string, and Guix and the
release validators derive 1.0.1 from a v1.0.1 tag.

Regenerate the manual pages from the built binaries with
contrib/devtools/gen-manpages.py (help2man 1.49.3). Only the version
and date lines change.

util_tests/test_FormatSubVersion expected the "Test" client name to
format as CLIENT_VERSION_STRING. FormatSubVersion uses that string only
for the qbit user agent and formats any other name numerically, so the
check holds only while the version has no phase or release-candidate
suffix. Expect the numeric form built from the version components,
which holds for every version. The qbit user-agent checks on the next
lines still cover CLIENT_VERSION_STRING.

No other tracked file carries the release version. The README and doc
mentions of v1.0.0 describe the launch source, and the 1.0.0 entries in
the workflows are branch names, so they are left alone.

Refs #174

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: add the release-gate fixes to the v1.0.1 release notes

Fold the release-notes fragments of #264, #265, #266 and #268 into
doc/release-notes-1.0.1.md and delete them, and write the #263 entry
from its pull request. #263's new P2MR stack-byte standardness rule is
also listed under the behavior changes.

Correct claims these merges made stale:
- the fuzz-evidence limitation said later changes touch no fuzzed code;
  #263 and #265 change the interpreter that p2mr_script runs, and #268
  replaces the library that pqc and p2mr_script call, so fresh evidence
  on the release source is now required before tagging;
- the #162 entry said data signatures are unchanged (#265 caches them);
- the no-measurement line now points to #268's library cost figures;
- the #252 entry now notes the later #264 and #263 profile edits.

Also correct the #183 entry, which said every other encryptwallet
failure returns -16; some return -4 or -8.

Record the deferred items under Known limitations: the consensus
stack-byte cap (#257), uncached failed PQC signature checks (#259), and
the remaining AuxPoW limits and open review notes from #266 (#258).

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: record the remaining v1.0.1 limitations in the release notes

Address the independent review of the v1.0.1 notes:
- record that DerivePQCKey still leaves HD seed material and HKDF state
  in its own stack frame, which #268's library wipe does not reach and
  #270 would clear, and qualify the summary and the #268 entry;
- qualify #163's retry claim and record its pre-existing serial-fallback
  re-signing as a known limitation;
- say how v1.0.0 receivers handle headers messages cut short for size,
  matching the Known limitations entry;
- list every installed Linux binary in the upgrade steps;
- say that docs.qbit.org is already served by the earlier Pages workflow
  and only the versioned site from #148 is undeployed;
- give the nightly fuzz mutation phase the Known limitations entry its
  pointer refers to, and credit #164 for the Qt shutdown-test fix.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: add the area-review findings to the v1.0.1 release notes

Release notes:
- add an Updated RPCs section: bumpfee rejects a replacement whose
  signer changed anything but input signatures, and revalidates the
  replacement at commit time (#167, which shipped the unmerged #146);
  send entries can omit vout, address and label (#150); list the new
  bumpfee failures under the behavior changes as well;
- restate #268's cost from the release review's measurements, with the
  SHA backends they cover;
- add Known limitations for per-descriptor PQC signature counters, the
  qbit-qt Send dialog signing while it prepares, and the platforms on
  which the libbitcoinpqc stack-wipe depth is verified.

doc/consensus/p2mr-v1.md: correct the non-normative section 9 sentence
from #264, which implied wallet-wide per-key counting. Wallet counters
enforce the 2^30 contract per descriptor and per wallet copy. No
normative text changes, but the specification bytes do, so the P2MR v1
consensus review must cite a commit that contains this change.

share/examples/qbit.conf: show the -fallbackfee default from #151, as
contrib/devtools/gen-qbit-conf.sh generates it. The generator's other
difference, the lock debug category, appears only in Debug builds and
is left out.

Refs #174.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: cover #270, #277 and #289 and the deferred review findings in the v1.0.1 notes

The notes predated #270, #277 and #289, and the 2026-11-04 review of the
v1.0.1 change set found that they left out the deferred wallet and IPC
findings.

- #270: a normal entry replaces the DerivePQCKey known limitation and the
  qualifiers in the summary and #268's entry. The 17 KiB figure is scoped
  to the library, and qbit's calls need at least 32 KiB for the new wipe.
- #277: fold in release-notes-277.md. How to Upgrade gains the guidance
  for wallets encrypted by v1.0.0 that may still hold unencrypted PQC keys,
  and a downgrade statement.
- #289: fold in release-notes-278.md as a new Mining interface section, and
  add the IPC client requirement under Behavior changes.
- Known limitations add the deferred findings #279-#296 and #304, each with
  what users should do. The #143 entry now says which paths resume a pending
  keypool refill.
- The fuzz-anchor entry and the fuzz-evidence caveat cover #270 and #342.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: correct v1.0.1 notes and docs from the release review

Release notes:
- fallback fee (#307): the floor is only this node's minimum relay fee,
  -mintxfee and mempool minimum. Peers with a higher minimum, or a
  congested network, may not relay or mine a fallback-rate send until its
  fee is bumped. Note the bump cost for P2MR, -fallbackfee=0 for services
  that prefer failure, and the 60-hour estimate staleness;
- #268 cost (#311): production mode pins the library's SHA-2 to its
  portable code on every platform, so SHA-NI, ARMv8 SHA and CommonCrypto
  are never used; AVX2 still speeds up keygen and signing. Restate the
  measured figures for that backend, drop the SHA-NI and test-knob-only
  scalar figures, list what was not measured, and remove the CommonCrypto
  clause from the stack-wipe limitation;
- low-work headers sync (#309) cannot complete from any peer through a
  dense AuxPoW range and retries at each announcement;
- the -15 encryptwallet wording, the libexec binaries in the upgrade
  steps (#339), the #163 planner wording (#330), the #337 docs deploy,
  and drop "reviewed" from the summary (#315).

doc/user/bitcoin-core-differences.md (#330): add the 1 MiB P2MR stack-byte
policy limit and its reject reason, and correct the data-signature charge
to 3,683 with the testnet4 and regtest legacy cases.

doc/subtrees/libbitcoinpqc.md (#333): direct library calls need about
17 KiB of stack; qbit's CPQCKey and DerivePQCKey calls need at least
32 KiB plus frames for the #270 wipe.

Remove the v1.0.0 fragments release-notes-95, -102, -128 and -132 (#340),
which shipped at v1.0.0 and are referenced nowhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: update the v1.0.1 release notes for the changes merged since 2026-11-05

Fold in #297, #298, #299, #319, #344, #346, #347 and #348 from the
reviewed draft, and #300, #301, #343 and #353 from their fragments:
the post-encryption rewrite and its disk space and first-load cost, the
re-encryption of PQC keys v1.0.0 left unencrypted and how to unlock for
it in qbit-qt, the new backupwallet and getwalletinfo fields, PSBT Sign
re-entrancy, and the macOS debug symbol archives. Update the How to
Upgrade, downgrade, #277 and Known limitations text these change, remove
the limitations fixed since, and extend the fuzz-evidence list.

Delete the per-PR fragments the notes now cover.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: regenerate the v1.0.1 manual pages

Regenerate doc/man with contrib/devtools/gen-manpages.py from binaries
built at the merged tree. Apart from the date, only the -discardfee help
in qbitd.1 and qbit-qt.1 changes, for the limit #346 added when there is
no fee estimate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: correct the v1.0.1 release notes from the launch review

- #268: libbitcoinpqc v0.3.2 verification is about 7 to 8% slower in a
  production-mode x86-64 micro-benchmark, from the wipe of the SHA-256
  and SHA-512 finalize buffers it added, and a mainnet
  -reindex-chainstate on the same machine took about 5 to 8% longer
  than with v1.0.0. The notes said verification showed no change, and
  that no throughput or IBD measurement accompanied the release.
- #293 is fixed by #300 (DelAddressBook takes cs_wallet before its
  transaction): move it from Known limitations to Wallet fixes.
- #166: the Sign/Verify dialog shows the lowercase state name, such as
  "normal".
- #266: add the mainnet mixed-version sync result and the advice to
  upgrade nodes that accept inbound connections first.
- Add known limitations for #364 (PSBT Save's file dialog leaves Sign
  and Close reachable through accessibility tools) and #365 (coin
  control's change preview).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: regenerate the example config and drop an internal note from the v1.0.1 notes

Regenerate share/examples/qbit.conf with contrib/devtools/gen-qbit-conf.sh
from the v1.0.1 build, so the -discardfee description carries the sentence
that #346 added to the help, as the regenerated manual pages do. The
"lock" debug category is only compiled into builds with
DEBUG_LOCKCONTENTION, so a release build does not list it.

Drop the known-limitations item about the scope of the release readiness
inspection: it describes release-process status, not a limitation users
need to know about.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: cover the PRs merged since the last v1.0.1 notes update

Add entries for the eleven PRs merged into 1.x.x after 0a936d6:
#379 (walletpassphrasechange keeps the lock state) under Wallet fixes
and Updated RPCs, #352 and #354 with the other qbit-qt fixes, folded
from their fragments, #380 (NODE_WITNESS_PRUNED only from a peer's own
version message) with the P2P changes, #381 in a new PHOTON section,
and #371, #374, #375, #376, #377 and #385 under release engineering
and CI.

Mention the new fixes in the summary, update the encryptwallet and
shutdown Known limitations for #352 and #354 (#349 is fixed), and add
the new PRs to the fuzz-evidence list, with #380's addrman and
net_processing change and the inherited targets that reach it.

Delete the folded fragments release-notes-352.md and -354.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* doc: cover the PRs merged for v1.0.1 since the last notes update

Fold in #378, #386 with #422's edits, #411, #418 and #419 from their
fragments, carry #411's edits to the deleted #304 fragment into the
walletpassphrase text, and add entries for #387, #410, #414 and #415.

Behavior changes add the P2MR hashing standardness rule (#415), the
per-peer budget for validating rejected transactions with its debug-only
-txvalidationbudget option (#386, #422), and walletpassphrase refilling
the P2MR keypools before it returns, with the timeout counting from the
end of the refill and a new -4 error on failure (#411). How to Upgrade
adds the reconsiderblock line, and the qbit-photon interoperability
sentence now matches #410.

Known limitations drop #296, which #418 fixes, update the uncached failed
PQC signature bullet for the validation budget, and extend the
fuzz-evidence caveat with #386, #414, #415 and #422 and the inherited
targets that reach them.

Delete the per-PR fragments the notes now cover.

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.

1 participant