Repository navigation
Add RPC benchmark endpoint coverage - #16
Merged
Merged
Conversation
kiwidream
added a commit
that referenced
this pull request
Jun 25, 2026
* Add scheduled performance workflows * Add RPC benchmark endpoint coverage (#16) * Add wallet read RPC benchmarks * Add transaction construction RPC benchmarks
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]>
18 tasks done
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
Validation
jq empty test/functional/data/rpc_perf_manifest.jsonpython3 -m py_compile test/functional/feature_rpc_perf.pygit diff --check./test/functional/feature_rpc_perf.py --helpNeed help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Note
Low Risk
Changes are limited to functional RPC perf test data and harness code; no node, wallet, or RPC implementation behavior is modified.
Overview
Expands the RPC performance harness with wallet read, listing, and raw tx/PSBT benchmarks on the existing
wallet_readyfixture, all in theshared_name_qbit_modifiedlane with latency-only comparison against reference.rpc_perf_manifest.jsongains many newshared.modified.*cases (e.g.getwalletinfo,getbalance,listunspent,createrawtransaction,fundrawtransaction,decodepsbtneighbors likedecoderawtransaction,converttopsbt) wired to newwallet_*call builders.prepare_wallet_readynow labels the receive address (rpc-perf-receive), storesreceive_script_pubkeyfordecodescript, and keeps reusing prebuiltraw_tx/psbtso warm runs do not churn the keypool or addresses.Reviewed by Cursor Bugbot for commit 9e9020b. Bugbot is set up for automated code reviews on this repo. Configure here.