Support TS5 in `TrezorClientBase.device_model_name()`
What changed, and why it matters
This commit simply adds recognition for a new Trezor hardware wallet model, the 'Trezor Safe 5', in Electrum's Trezor plugin. It does not change any security-sensitive logic, cryptography, or transaction handling. There is no indication of a security issue being fixed.
No security action required. Treat as routine device-support maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch extends the device_model_name() helper in electrum/plugins/trezor/clientbase.py to return ‘Trezor Safe 5’ when the device reports model string ‘Safe 5’. This is a trivial device-name mapping addition with no functional or security implications.
Changed components
electrum/plugins/trezor/clientbase.pyInspect captured patch +2 / −0
diff --git a/electrum/plugins/trezor/clientbase.py b/electrum/plugins/trezor/clientbase.py
index 71caf36..1863afc 100644
--- a/electrum/plugins/trezor/clientbase.py
+++ b/electrum/plugins/trezor/clientbase.py
@@ -223,6 +223,8 @@ class TrezorClientBase(HardwareClientBase, Logger):
return "Trezor T"
elif model == "Safe 3":
return "Trezor Safe 3"
+ elif model == "Safe 5":
+ return "Trezor Safe 5"
return None
@runs_in_hwd_thread
Why this scored 17/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.