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

reject extended private keys when creating a terminal watch only wallet, and show import errors

Public commit record

What the developer wrote

Authored by Craig Raw

50/100 · Thin
reject extended private keys when creating a terminal watch only wallet, and show import errors
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in Sparrow Wallet's terminal (command-line) watch-only wallet creation. Previously, a user could accidentally paste an extended private key (xprv) into a dialog meant only for public keys or output descriptors, and the wallet would silently fail or create an empty wallet. Now the app rejects xprv keys with a clear error message and also shows import errors to the user instead of logging them silently.

Recommended action

Users building from source or using terminal Sparrow should update to include this commit. Review whether any other wallet-import paths (GUI, script imports) similarly allow xprv input where only xpub/output descriptors are expected.

Security signals we found

01

Prevents accidental import of extended private keys into watch-only wallet context

02

Surfaces previously swallowed import errors to the user via error dialog

03

Changes exception handling from ImportException-only to all exceptions

Risk score

Why this scored 42/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/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.