1
0

hww: ledger: update udev rules and model ids

see https://github.com/bitcoin-core/HWI/pull/746

maybe closes https://github.com/spesmilo/electrum/issues/9179
This commit is contained in:
SomberNight
2024-09-02 13:50:35 +00:00
parent bd845080b8
commit 5ad8c97c1d
2 changed files with 11 additions and 16 deletions

View File

@@ -1340,7 +1340,7 @@ class LedgerPlugin(HW_PluginBase):
(0x2c97, 0x0004), # Nano-X
(0x2c97, 0x0005), # Nano-S Plus
(0x2c97, 0x0006), # Stax
(0x2c97, 0x0007), # RFU
(0x2c97, 0x0007), # Flex
(0x2c97, 0x0008), # RFU
(0x2c97, 0x0009), # RFU
(0x2c97, 0x000a)] # RFU
@@ -1350,6 +1350,7 @@ class LedgerPlugin(HW_PluginBase):
0x40: "Ledger Nano X",
0x50: "Ledger Nano S Plus",
0x60: "Ledger Stax",
0x70: "Ledger Flex",
}
SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh')
@@ -1399,6 +1400,8 @@ class LedgerPlugin(HW_PluginBase):
return True, "Ledger Nano S Plus"
if product_key == (0x2c97, 0x0006):
return True, "Ledger Stax"
if product_key == (0x2c97, 0x0007):
return True, "Ledger Flex"
return True, None
# modern product_keys
if product_key[0] == 0x2c97: