1
0

Add support for Ledger Stax (#8308)

* Add support for Ledger Stax
This commit is contained in:
Victor Forgeoux
2023-04-18 15:11:49 +02:00
committed by GitHub
parent be2f156a4b
commit ee61f99c22
2 changed files with 6 additions and 1 deletions

View File

@@ -1322,7 +1322,7 @@ class LedgerPlugin(HW_PluginBase):
(0x2c97, 0x0001), # Nano-S
(0x2c97, 0x0004), # Nano-X
(0x2c97, 0x0005), # Nano-S Plus
(0x2c97, 0x0006), # RFU
(0x2c97, 0x0006), # Stax
(0x2c97, 0x0007), # RFU
(0x2c97, 0x0008), # RFU
(0x2c97, 0x0009), # RFU
@@ -1332,6 +1332,7 @@ class LedgerPlugin(HW_PluginBase):
0x10: "Ledger Nano S",
0x40: "Ledger Nano X",
0x50: "Ledger Nano S Plus",
0x60: "Ledger Stax",
}
SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh')
@@ -1380,6 +1381,8 @@ class LedgerPlugin(HW_PluginBase):
return True, "Ledger Nano X"
if product_key == (0x2c97, 0x0005):
return True, "Ledger Nano S Plus"
if product_key == (0x2c97, 0x0006):
return True, "Ledger Stax"
return True, None
# modern product_keys
if product_key[0] == 0x2c97: