Provider refusals
write_verifier: Provider declined the request because of a cybersecurity restriction. Experiments remain incomplete; static verification can continue.
6 minor findings · 6 suggestions
Earlier concerns neither republished nor resolved: 1 major finding · 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · PSBT completion omits CISA aggregate verification
Externally supplied CISA final witnesses can make PSBT RPCs report completion or finality without verifying the aggregate, even though mempool validation rejects it.
Location: src/psbt.cpp:938 (head).
Details and suggested fix
For an aggregated v2 key-path witness, VerifyScript deliberately defers signature verification to VerifyCISATransaction. PSBTInputSignedAndVerified calls only the former. A witness containing one empty element therefore passes as a fullagg member even though its group has no final input. SignPSBTInput returns early, and FinalizeCISAInputs stops processing an already-finalized group without validating it. Consequently, walletprocesspsbt, descriptorprocesspsbt and finalizepsbt can report completion and extract rejected transaction hex; analyzepsbt can mark the input final. Parseable final elements carrying bogus aggregates have the same verification gap. This requires supplied final witnesses, such as material received through combinepsbt, rather than the valid witnesses built by the current signing workflows. Run VerifyCISATransaction on the assembled transaction wherever PSBT completeness is decided, as SignTransaction already does, and add regressions for an orphan member and a corrupted aggregate.
[minor] · Fullagg signing uses unresolved group sighashes
With existing fullagg nonces and unresolved sighash fields, an explicit non-default signing request can consume a nonce on a partial signature that finalization rejects.
Location: src/psbt.cpp:765 (head).
Details and suggested fix
SignPSBTInput writes the requested sighash only to its current input, then snapshots every fullagg member's stored sighash, treating absent fields as DEFAULT. For two nonce-populated inputs without sighash fields, a manager visiting both sequentially signs input 0 over [ALL, DEFAULT] and input 1 over [ALL, ALL] when walletprocesspsbt requests ALL. Finalization recomputes [ALL, ALL] and rejects the first partial. A single non-multipath cisa() signing descriptor gives this order; with several managers, it depends on their traversal order. Retrying retains the existing partial, and its secret nonce has already been consumed, so the session must restart with new nonces. Resolve every member's effective sighash before producing any partial signature, or refuse signing while a member remains unresolved. Production frequency is unconfirmed.
[minor] · descriptorprocesspsbt publishes fullagg nonces it cannot retain
When this stateless RPC generates a fullagg nonce from private descriptors, it drops the secret, preventing later partial signing; builds enforcing Assume abort instead.
Location: src/rpc/rawtransaction.cpp:2156 (head).
Details and suggested fix
A fullagg input without a public nonce reaches MakeCISANonce when descriptorprocesspsbt receives a matching private descriptor. Its local FlatSigningProvider has no cisa_secnonces store. SetCISASecNonce therefore fails Assume(cisa_secnonces) and returns, but MakeCISANonce still publishes the public nonce into the PSBT. In ordinary release builds, later calls cannot retrieve its secret, even with the same private descriptor, so the session initiated here cannot produce a partial signature. Debug builds define ABORT_ON_FAILED_ASSUME and abort on the first generation attempt. Reject fullagg nonce generation in this stateless RPC, or make publication conditional on successful secret retention. Finalization of partial signatures supplied by other signers can remain supported.
[minor] · First halfagg finalization can report incomplete after building final witnesses
With externally supplied 65-byte halfagg signatures and omitted sighash fields, finalizepsbt can return complete=false after building valid witnesses; retrying the returned PSBT succeeds.
Location: src/psbt.cpp:733 (head).
Details and suggested fix
FinalizePSBT passes each input's optional sighash field to SignPSBTInput. If the field is absent, CISA defaults to SIGHASH_DEFAULT, and the existing 65-byte halfagg signature triggers SIGHASH_MISMATCH. FinalizeCISAInputs nevertheless supports this state: it derives the type from the signature's last byte, verifies the signatures and builds the group's final witnesses. The earlier failure leaves complete=false, while a second call succeeds through the already-finalized verification path. Derive the effective sighash from existing halfagg signatures in the finalizer path when the field is absent. This branch's signer writes the field for non-default types, so the trigger requires an external producer that omits it. No such producer was identified, and production impact is unconfirmed.
[minor] · PSBT dialog reports no progress after adding CISA signatures
In Qt, contributing the wallet's signatures to an otherwise unfinished CISA group shows “Could not sign any more inputs.”
Location: src/wallet/wallet.cpp:2064 (head).
Details and suggested fix
Halfagg and fullagg signing store signature contributions without building individual final witnesses; FinalizeCISAInputs builds the witnesses once the whole group is ready. DescriptorScriptPubKeyMan::FillPSBT increments n_signed only for inputs with final scripts or witnesses. When the wallet owns only part of an unfinished group, it can add its contribution while leaving n_signed at zero. The unlocked PSBT dialog then displays the no-progress warning instead of indicating that the updated PSBT should be passed to the next participant. The signature material remains stored. MuSig2 already has this counting limitation in base, but CISA makes it part of the ordinary two-party aggregation flow. Count new signature contributions separately from finalized inputs.
[minor] · Qt's Taproot receive option can generate a CISA address
With an active cisa() receive descriptor, choosing “Bech32m (Taproot)” generates a witness-v2 address rather than a witness-v1 Taproot address.
Location: src/script/descriptor.cpp:1569 (head).
Details and suggested fix
TRDescriptor::MakeScripts emits WitnessV2Cisa for cisa(), but GetOutputType() still returns BECH32M, so activating the descriptor places it in that address slot. WalletImpl::taprootEnabled() checks only whether a BECH32M manager exists. The receive dialog therefore offers the slot as “Bech32m (Taproot)” and generates the selected address through it, despite the different witness version and payer compatibility. Expose the active script type to the GUI and label the receive option accordingly.
Optional improvements
[suggestion] · Invalid aggregates require group-wide work without input ownership
Given suitable existing v2 UTXOs, a peer can repeatedly trigger group-wide aggregate verification without owning them or paying transaction fees; the policy adds no aggregation-specific cost bound.
Location: src/validation.cpp:2123 (head).
Details and suggested fix
CISACheck runs inline before the mempool's per-input loop and does not consult a signature cache. A peer can reference other people's v2 UTXOs, supply a structurally valid group with valid-x nonce points and an incorrect scalar, and reach the complete aggregate equation. Halfagg performs nearly two variable-base multiplications per member; fullagg uses ecmult_multi_var without scratch space. Failure is TX_NOT_STANDARD, and changing the scalar changes the wtxid, avoiding the exact rejection entry. Existing transaction-weight, fee and UTXO checks still apply. Base already permits repeated expensive failures from an attacker who owns many Taproot UTXOs and re-signs variants; CISA removes that ownership requirement and has roughly twice the halfagg multiplication count per weight. These are operation counts, not timing measurements. Benchmark maximum-weight invalid groups against that baseline before accepting the cost model. If the cost is excessive, impose an aggregated-input relay limit or charge members through sigop-adjusted vsize. Moving the check after per-input checks only filters malformed witnesses.
[suggestion] · Fresh mempool acceptance repeats aggregate verification
With CISA active and no existing script-cache entry, a fresh transaction's aggregate is verified in both mempool passes instead of reusing the successful verification.
Location: src/validation.cpp:2123 (head).
Details and suggested fix
PolicyScriptChecks runs CISACheck under policy flags with full-script cache storage disabled. ConsensusScriptChecks then checks the transaction under the tip's block flags. On a cache miss with CISA active, this repeats the aggregate cryptography while cs_main and the mempool lock remain held. The aggregate wrappers call the halfagg/fullagg verifiers directly, so they cannot reuse successful signature verification as per-input Schnorr checks do. Cache successful group verification, keyed by the marker, ordered pubkeys and messages, and aggregate signature, while retaining the consensus-flags re-check. The consensus pass already stores full-script validity for subsequent block validation. This repeated-work observation comes from source inspection, not measurement.
[suggestion] · CISA functional tests omit the activation boundary
The tests use regtest's always-active CISA deployment, so they cannot detect unconditional block enforcement or enforcement starting one block late.
Location: test/functional/feature_cisa.py:201 (head).
Details and suggested fix
feature_cisa.py supplies no deployment override, and test_activation_status only asserts active == True. All spend assertions therefore run after activation without testing the DeploymentActiveAt condition that controls SCRIPT_VERIFY_WITNESS_V2 and aggregate-check scheduling. Add a finite, short -vbparams=cisa:... deployment test that accepts an invalid aggregate in the last pre-activation block, rejects an invalid aggregate in the first active block, accepts a correctly signed spend there, and reorgs across the boundary. Check mempool behavior separately: its standard flags include WITNESS_V2 unconditionally, so pre-activation block acceptance must not imply relay acceptance.
[suggestion] · CISA queue coverage depends on the host CPU count
On a single-core host, both functional-test nodes validate synchronously, leaving the queued CISACheck path untested.
Location: test/functional/feature_cisa.py:92 (head).
Details and suggested fix
The docstring promises parallel validation on node 0, but that node inherits the framework's par=min(2, os.cpu_count()). A single-core host therefore gives both nodes par=1, which creates no script workers. ConnectBlock then uses the inline path on both nodes, including for the invalid-aggregate block assertion. Give node 0 an explicit -par=2 while retaining node 1's -par=1, so queue submission and the associated borrowed transaction-data lifetime are exercised independently of the host CPU count.
[suggestion] · Fullagg finalization repeats group preprocessing for every partial
Each partial-signature check recomputes group-wide nonce and hash state, making valid n-member finalization quadratic while the wallet lock is held.
Location: src/cisa.cpp:153 (head).
Details and suggested fix
AggregateFullAggSigs initializes a session once but verifies each partial through secp256k1_fullagg_partial_sig_verify, which takes no session. Every invocation re-sums both public nonce points for all members, hashes the key/message/nonce lists for the nonce coefficient, and re-hashes the full list for the challenge. For n valid partials, this adds about 2n² nonce-summing point additions and quadratic hashing under cs_wallet. Practical latency, particularly for coinjoin-sized groups, is unmeasured. Benchmark increasing group sizes and consider extending the upstream API in bitcoin-core/secp256k1#1754 to reuse validated precomputation bound to the exact ordered keys, messages and nonces. Preserve partial-signature verification rather than skipping it.
[suggestion] · Random-forgery subtest passes capacity instead of aggregate length
For every n below N_MAX, the first halfagg unforgeability subtest fails on length alone and never examines its sampled aggregate bytes.
Location: src/secp256k1/src/modules/schnorrsig_halfagg/tests_impl.h:246 (head).
Details and suggested fix
test_schnorrsig_aggregate_unforge_internal chooses n randomly but passes sizeof(aggsig), which is 32*(N_MAX+1), to secp256k1_schnorrsig_aggverify. The verifier requires exactly 32*(n+1) and returns before processing the random R/s values when n < N_MAX. Pass 32*(n+1) so this assertion tests rejection of a correctly sized random aggregate rather than repeating the length check. This is vendored subtree test code, so the correction belongs upstream in bitcoin-core/secp256k1#1566.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [major]: Witness-v2 spends are standard on networks where CISA is inactive (earlier report)
- [suggestion]: Aggregate signatures are verified serially in one check-queue job (earlier report)