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

qt: main_window: use TaskThread for each of sign/verify/encrypt/decrypt

Public commit record

What the developer wrote

Authored by SomberNight

83/100 · Strong
qt: main_window: use TaskThread for each of sign/verify/encrypt/decrypt

To make them homogeneous.
Also note: window.on_error handles UserFacingException, which the wallet methods can now raise.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit moves four message-crypto operations (sign, verify, encrypt, decrypt) in Electrum's Qt wallet window onto a background worker thread so they all behave the same way. It also lets the background thread surface user-facing errors through the existing error handler. The change is a UI refactor, not a fix for a known exploit, but it removes a direct synchronous call that previously swallowed exceptions and could briefly freeze the GUI.

Recommended action

Treat as a routine refactor with minor hardening. No urgent action required. If auditing, confirm that window.on_error correctly handles UserFacingException from these tasks and that the sign/decrypt paths already behave equivalently. Consider whether the removed local warning for encrypt errors changes user-visible behavior.

Security signals we found

01

Moved blocking wallet crypto calls off the GUI thread, reducing UI freeze / DoS surface

02

Removed local exception swallowing for encrypt_message; errors now propagate through the window's on_error handler

03

Added defensive RuntimeError guard for deleted Qt widget in async callback

04

No input validation, crypto algorithm, or privilege changes visible in the diff

Risk score

Why this scored 16/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 7/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.