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

wallet: disable_keystore() not to destroy get_key_origin_info()

Public commit record

What the developer wrote

Authored by SomberNight

50/100 · Thin
wallet: disable_keystore() not to destroy get_key_origin_info()
✓ 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 the Electrum wallet where disabling a keystore (a container for private key material) accidentally wiped out important key metadata called 'key origin info.' This metadata tells the wallet where a key came from in a derivation path. Losing it could cause problems when the wallet later tries to sign transactions or interact with hardware wallets, because the wallet might not be able to reconstruct the correct key path. The fix changes the internal field name used when converting a keystore to a watch-only version, and adds tests to make sure the metadata survives.

Recommended action

Treat as a bug-fix commit with low-to-moderate security relevance. Review whether any released versions shipped with this metadata loss and whether it could affect PSBT signing or hardware-wallet compatibility. No immediate emergency response is indicated, but backporting the fix and adding the regression tests is prudent.

Security signals we found

01

Data-loss bug in key metadata preservation

02

Incorrect constructor keyword argument (`derivation_prefix` vs `derivation`)

03

Watch-only keystore conversion may break PSBT/hardware-wallet signing path reconstruction

04

Regression tests added for disabled keystore metadata integrity

Risk score

Why this scored 28/100

Our methodology →
Potential impact 5/30
Exploitability 3/25
Stealth signal 4/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.