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

wallet: disallow unnamed wallets in createwallet and restorewallet

Public commit record

What the developer wrote

Authored by Ava Chow

73/100 · Adequate
wallet: disallow unnamed wallets in createwallet and restorewallet

Migration still needs to be able to restore unnamed wallets, so
allow_unnamed is added to RestoreWallet to explicitly allow that
behavior for migration only.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This Bitcoin Core change stops users from creating or restoring wallets with an empty name through the normal RPC commands. Empty wallet names could cause confusion or unexpected behavior, so the patch now rejects them with a clear error. The only exception is during wallet migration, where an existing unnamed wallet is allowed to be restored. The change is a hardening fix, not a response to an active exploit.

Recommended action

No urgent action required. Operators and integrators using createwallet/restorewallet should ensure they pass non-empty wallet names. The change is backward-incompatible for callers that previously relied on empty names, but that behavior is now considered unsupported except during migration.

Security signals we found

01

Input validation hardening: empty wallet name now rejected at API boundary

02

New error status code FAILED_NEW_UNNAMED introduced and mapped to RPC_INVALID_PARAMETER

03

Behavioral carve-out for migration only (allow_unnamed=true) to avoid breaking legacy migration

04

Functional tests updated to assert rejection of empty names

Risk score

Why this scored 31/100

Our methodology →
Potential impact 5/30
Exploitability 5/25
Stealth signal 5/15
Affected reach 5/15
Confidence 7/10
Evidence quality 4/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.