What changed, and why it matters
This commit simply adds recognition for a new Ledger hardware wallet model, the 'Nano Gen5', to Electrum's Ledger plugin. It renames a previously reserved placeholder entry and adds the model name to internal lookup tables. There is no security fix or vulnerability here.
No security action needed. Treat as a routine feature-support commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch updates electrum/plugins/ledger/ledger.py to support Ledger Nano Gen5. It changes the comment for USB product ID (0x2c97, 0x0008) from ‘RFU’ (reserved for future use) to ‘Nano Gen5’, adds 0x80 -> ‘Ledger Nano Gen5’ to the MODEL_IDS map, and adds a product_key match returning ‘Ledger Nano Gen5’. No cryptographic, protocol, or access-control code is modified.
Changed components
electrum/plugins/ledger/ledger.pyInspect captured patch +4 / −1
diff --git a/electrum/plugins/ledger/ledger.py b/electrum/plugins/ledger/ledger.py
index f10f97f..c7099ec 100644
--- a/electrum/plugins/ledger/ledger.py
+++ b/electrum/plugins/ledger/ledger.py
@@ -1228,7 +1228,7 @@ class LedgerPlugin(HW_PluginBase):
(0x2c97, 0x0005), # Nano-S Plus
(0x2c97, 0x0006), # Stax
(0x2c97, 0x0007), # Flex
- (0x2c97, 0x0008), # RFU
+ (0x2c97, 0x0008), # Nano Gen5
(0x2c97, 0x0009), # RFU
(0x2c97, 0x000a)] # RFU
VENDOR_IDS = (0x2c97,)
@@ -1238,6 +1238,7 @@ class LedgerPlugin(HW_PluginBase):
0x50: "Ledger Nano S Plus",
0x60: "Ledger Stax",
0x70: "Ledger Flex",
+ 0x80: "Ledger Nano Gen5",
}
SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh')
@@ -1289,6 +1290,8 @@ class LedgerPlugin(HW_PluginBase):
return True, "Ledger Stax"
if product_key == (0x2c97, 0x0007):
return True, "Ledger Flex"
+ if product_key == (0x2c97, 0x0008):
+ return True, "Ledger Nano Gen5"
return True, None
# modern product_keys
if product_key[0] == 0x2c97:
Why this scored 15/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.