From 7e083824b7c5703d0e7687d678f5a643f95f0263 Mon Sep 17 00:00:00 2001 From: nndiaye-ledger <76063520+nndiaye-ledger@users.noreply.github.com> Date: Wed, 2 Mar 2022 13:59:51 +0100 Subject: [PATCH] Add support for Ledger Nano S Plus (#7692) --- electrum/plugins/ledger/ledger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/electrum/plugins/ledger/ledger.py b/electrum/plugins/ledger/ledger.py index 3fcfc93bf..5922a55cf 100644 --- a/electrum/plugins/ledger/ledger.py +++ b/electrum/plugins/ledger/ledger.py @@ -588,7 +588,7 @@ class LedgerPlugin(HW_PluginBase): (0x2c97, 0x0000), # Blue (0x2c97, 0x0001), # Nano-S (0x2c97, 0x0004), # Nano-X - (0x2c97, 0x0005), # RFU + (0x2c97, 0x0005), # Nano-S Plus (0x2c97, 0x0006), # RFU (0x2c97, 0x0007), # RFU (0x2c97, 0x0008), # RFU @@ -599,6 +599,7 @@ class LedgerPlugin(HW_PluginBase): LEDGER_MODEL_IDS = { 0x10: "Ledger Nano S", 0x40: "Ledger Nano X", + 0x50: "Ledger Nano S Plus", } SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh') @@ -639,6 +640,8 @@ class LedgerPlugin(HW_PluginBase): return True, "Ledger Nano S" if product_key == (0x2c97, 0x0004): return True, "Ledger Nano X" + if product_key == (0x2c97, 0x0005): + return True, "Ledger Nano S Plus" return True, None # modern product_keys if product_key[0] == 0x2c97: