Provider refusals
write_verifier: Provider declined the request because of a cybersecurity restriction. Experiments remain incomplete; static verification can continue.
1 major finding · 3 minor findings · 1 suggestion
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[major] · CISA spends are relayed on networks where consensus leaves v2 outputs anyone-can-spend
On mainnet, testnet, and signet, this build relays and mines BIP460 spends and can receive to v2 outputs, while consensus still accepts any spend of those outputs.
Location: src/policy/policy.h:133 (head).
Details and suggested fix
The change enables SCRIPT_VERIFY_WITNESS_V2 unconditionally in the mandatory and standard script flags, and Solver classifies OP_2 <32 bytes> as WITNESS_V2_CISA. As a result, ValidateInputsStandardness no longer rejects these inputs, and VerifyWitnessProgram checks them under BIP460 rules instead of rejecting them as undefined witness programs.
Consensus enables the flag only when DEPLOYMENT_CISA is active. Only regtest configures that deployment as ALWAYS_ACTIVE; other chains default to NEVER_ACTIVE. On mainnet, testnet, and signet, this build therefore admits BIP460-conforming v2 spends to its mempool and block templates, while block validation still accepts any v2 spend, including one with an empty witness.
cisa() reports OutputType::BECH32M, so a wallet on those networks can use it for receive or change. Funds received at those outputs are not protected by consensus there. The concern applies if this branch runs outside regtest; the description says those networks have no deployment parameters. Before activation, Taproot made v1 input standardness depend on deployment state. Apply the same rule here by rejecting v2 inputs in ValidateInputsStandardness unless CISA is active for the next block. Also consider refusing active cisa() descriptors while the deployment is inactive.
[minor] · PSBT completion accepts CISA aggregate witnesses without verifying them
PSBT RPCs can report a transaction complete or final even when mempool validation rejects its aggregate witness; consensus and mempool checks still reject the invalid spend.
Location: src/psbt.cpp:938 (head).
Details and suggested fix
For a witness-v2 key-path witness with a CISA marker, VerifyWitnessProgram returns success without checking a signature. The aggregate is checked only by VerifyCISATransaction, which no PSBT path calls. PSBTInputSignedAndVerified runs per-input VerifyScript only, so any parseable final_script_witness counts as verified. This includes, for example, a single empty element for a fullagg member whose group has no final input, or a 65-byte final element with a marker and bogus aggregate.
SignPSBTInput returns early, FinalizeCISAInputs treats a finalized member as closing its group, and FinalizePSBT requires only a final witness for aggregated inputs. Consequently, walletprocesspsbt, descriptorprocesspsbt, finalizepsbt, and analyzepsbt can report the PSBT complete or final, then return a transaction that mempool validation rejects with a CISA group or verification error. At the base commit, these v2 inputs failed the per-input check under standard flags.
The trigger requires final witnesses the node did not build, such as witnesses supplied by another participant through combinepsbt. No checked-in workflow produces an invalid witness. SignTransaction already calls VerifyCISATransaction after its per-input checks; run the same check on the assembled transaction wherever PSBT completeness is decided.
[minor] · Fullagg signing uses unresolved group sighash values
With an explicit non-default sighash, signing can consume a nonce for a partial signature that finalization later rejects, forcing the session to restart; how often this occurs in practice is unconfirmed.
Location: src/psbt.cpp:765 (head).
Details and suggested fix
SignPSBTInput writes the requested sighash only to the input currently being signed, then builds the fullagg group from each member’s stored sighash_type, treating an absent field as DEFAULT. CreateCISAFullAggPartialSig hashes each member’s message from that snapshot, and CreateFullAggPartialSig invalidates the secret nonce. DescriptorScriptPubKeyMan::FillPSBT processes inputs one at a time.
For example, suppose two fullagg inputs have public nonces but no sighash fields. The nonces may come from reservecisanonce or from a first round using the default sighash. Signing with walletprocesspsbt and sighashtype="ALL" makes input 0 sign over [ALL, DEFAULT], then input 1 sign over [ALL, ALL]. FinalizeCISAInputs recomputes [ALL, ALL], so AggregateFullAggSigs rejects input 0’s partial signature.
Retrying does not help: SignTaproot returns early when a partial signature exists, and the nonce has already been consumed. The session must restart. This occurs whenever the signing descriptor manager reaches an input before another manager has set the later members’ sighash fields. It always occurs with a wallet whose only descriptor is cisa(); with multiple managers, it depends on iteration order. Resolve and write every fullagg member’s effective sighash before producing any partial signature, or refuse to sign while a member’s sighash is unresolved. No checked-in test combines full aggregation with a non-default sighash, so the production frequency is unconfirmed.
[minor] · descriptorprocesspsbt cannot retain fullagg secret nonces
The RPC cannot complete fullagg signing; in debug builds, its first call aborts the node when an Assume fails.
Location: src/rpc/rawtransaction.cpp:2157 (head).
Details and suggested fix
descriptorprocesspsbt signs with a local FlatSigningProvider whose cisa_secnonces is null. In fullagg mode, SignTaproot calls MakeCISANonce, which passes the secret nonce to SetCISASecNonce. The mode can come from the cisa_mode argument or already be set in the PSBT. SetCISASecNonce fails Assume(cisa_secnonces) and returns without storing the secret nonce, but the public nonce is still returned and written to the PSBT.
In release builds, a later call cannot retrieve the secret nonce through GetCISASecNonce, so this RPC cannot produce the partial signature. Co-signers are left with a nonce that cannot be used. In debug builds, ABORT_ON_FAILED_ASSUME makes the first call abort the node. The functional test exercises this RPC only with halfagg.
Either reject fullagg signing in this stateless RPC, or make MakeCISANonce refuse to publish a public nonce when the provider cannot store its secret.
Optional improvements
[suggestion] · Mempool acceptance verifies each aggregate signature twice
The aggregate check has no cache, so ConsensusScriptChecks repeats it for every accepted aggregated transaction; per-input Schnorr checks hit the signature cache on the second pass.
Location: src/validation.cpp:2133 (head).
Details and suggested fix
PolicyScriptChecks calls CheckInputScripts with standard flags, which include SCRIPT_VERIFY_WITNESS_V2; CISACheck therefore runs inline, and that pass populates the signature cache for per-input Schnorr checks.
When CISA is active at the tip, ConsensusScriptChecks calls CheckInputScripts again with the tip’s flags. The script-execution cache misses because the flags differ and the policy pass stored nothing, so CISACheck runs again. VerifyCISATransaction calls the halfagg and fullagg verifiers directly and has no cache. Each accepted aggregated transaction is therefore checked twice while cs_main and the mempool lock are held. For mempool transactions, block connection is unaffected because the second pass stores a script-execution cache entry.
Cache successful group verification, for example in the salted signature cache using a hash of the marker, pubkeys, messages, and aggregate signature. This removes the duplicate work while retaining the tip-flags re-check. These cost observations come from code inspection, not measurement.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Aggregate signatures are verified serially in one check-queue job (earlier report)