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

Merge pull request #11017 from f321x/fix_10998

Public commit record

What the developer wrote

Authored by accumulator

68/100 · Adequate
Merge pull request #11017 from f321x/fix_10998

keystore: fix #10998, don't persist unsupported keys
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes a bug where Electrum would save private keys for unsupported Bitcoin address types (such as multi-signature 'p2wsh' keys) to the wallet file when a user tried to import them. The fix makes the wallet reject and not store these unsupported keys. Before the fix, an imported unsupported key could silently persist in the wallet even though Electrum could not actually use it, which could mislead users and potentially cause loss of funds or confusion.

Recommended action

Users who imported private keys in older versions should verify their wallet does not contain unexpected keypairs for unsupported script types. Upgrade to the patched version. Developers should review whether any existing wallets may have persisted p2wsh/p2wsh-p2sh keys from prior imports.

Security signals we found

01

Input validation moved to prevent persistence of unsupported key material

02

New test explicitly verifies unsupported private keys are not persisted to wallet storage

03

Exception handling changed to surface unsupported key types as user-facing errors

04

Fixes referenced issue #10998

Risk score

Why this scored 59/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/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.