1
0

Merge pull request #10457 from bgridley/ledger-nano-gen5-support

Support for Ledger Nano Gen5
This commit is contained in:
ghost43
2026-02-02 16:36:40 +00:00
committed by GitHub

View File

@@ -1228,7 +1228,7 @@ class LedgerPlugin(HW_PluginBase):
(0x2c97, 0x0005), # Nano-S Plus (0x2c97, 0x0005), # Nano-S Plus
(0x2c97, 0x0006), # Stax (0x2c97, 0x0006), # Stax
(0x2c97, 0x0007), # Flex (0x2c97, 0x0007), # Flex
(0x2c97, 0x0008), # RFU (0x2c97, 0x0008), # Nano Gen5
(0x2c97, 0x0009), # RFU (0x2c97, 0x0009), # RFU
(0x2c97, 0x000a)] # RFU (0x2c97, 0x000a)] # RFU
VENDOR_IDS = (0x2c97,) VENDOR_IDS = (0x2c97,)
@@ -1238,6 +1238,7 @@ class LedgerPlugin(HW_PluginBase):
0x50: "Ledger Nano S Plus", 0x50: "Ledger Nano S Plus",
0x60: "Ledger Stax", 0x60: "Ledger Stax",
0x70: "Ledger Flex", 0x70: "Ledger Flex",
0x80: "Ledger Nano Gen5",
} }
SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh') SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh')
@@ -1289,6 +1290,8 @@ class LedgerPlugin(HW_PluginBase):
return True, "Ledger Stax" return True, "Ledger Stax"
if product_key == (0x2c97, 0x0007): if product_key == (0x2c97, 0x0007):
return True, "Ledger Flex" return True, "Ledger Flex"
if product_key == (0x2c97, 0x0008):
return True, "Ledger Nano Gen5"
return True, None return True, None
# modern product_keys # modern product_keys
if product_key[0] == 0x2c97: if product_key[0] == 0x2c97: