AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 33 Bitcoin

wallet: Keep secnonces in DescriptorScriptPubKeyMan

Public commit record

What the developer wrote

Authored by Ava Chow

50/100 · Thin
wallet: Keep secnonces in DescriptorScriptPubKeyMan
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes how Bitcoin Core wallets store temporary secret signing data (MuSig2 'secnonces') for multi-signature transactions. Previously, these secrets may have been kept in a more general signing provider; now they are kept inside the wallet's descriptor key manager. The change is defensive: it ensures these one-time secrets stay only in memory and are never written to disk, which prevents a dangerous nonce-reuse bug that could leak private keys. The commit itself is a small code move/addition, not a complete fix, and the commit message does not call it a security vulnerability.

Recommended action

Treat this as a hardening/defensive change rather than an active vulnerability. Review the full MuSig2 signing flow to confirm secnonces are generated once per unique session id, never serialized to disk, and cleared after use. If auditing, verify that `m_musig2_secnonces` is not accidentally persisted through any serialization, logging, or crash-dump path.

Security signals we found

01

MuSig2 secret nonce (secnonce) lifecycle management

02

In-memory-only storage to prevent nonce reuse

03

Descriptor key manager isolation of signing material

04

Comment explicitly warns that secnonces must not be reused and must not be written to disk

Risk score

Why this scored 33/100

Our methodology →
Potential impact 8/30
Exploitability 5/25
Stealth signal 6/15
Affected reach 5/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.