diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-05-26 12:57:55 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2019-05-26 12:57:54 +0800 |
commit | 922e757f193a773548e2c6f6f7e503d6f8a7e373 (patch) | |
tree | 4d611c83b79fd5698262a7e03aef51a179e7a74b /accounts/usbwallet | |
parent | fec3b56f7f440b635787f740b527f15b818c0e1b (diff) | |
download | go-tangerine-922e757f193a773548e2c6f6f7e503d6f8a7e373.tar go-tangerine-922e757f193a773548e2c6f6f7e503d6f8a7e373.tar.gz go-tangerine-922e757f193a773548e2c6f6f7e503d6f8a7e373.tar.bz2 go-tangerine-922e757f193a773548e2c6f6f7e503d6f8a7e373.tar.lz go-tangerine-922e757f193a773548e2c6f6f7e503d6f8a7e373.tar.xz go-tangerine-922e757f193a773548e2c6f6f7e503d6f8a7e373.tar.zst go-tangerine-922e757f193a773548e2c6f6f7e503d6f8a7e373.zip |
accounts/usbwallet: enable the Nano X and upcoming Ledger IDs (#19623)
Diffstat (limited to 'accounts/usbwallet')
-rw-r--r-- | accounts/usbwallet/hub.go | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/accounts/usbwallet/hub.go b/accounts/usbwallet/hub.go index a91340b4f..fc711bb3e 100644 --- a/accounts/usbwallet/hub.go +++ b/accounts/usbwallet/hub.go @@ -68,7 +68,20 @@ type Hub struct { // NewLedgerHub creates a new hardware wallet manager for Ledger devices. func NewLedgerHub() (*Hub, error) { - return newHub(LedgerScheme, 0x2c97, []uint16{0x0000 /* Ledger Blue */, 0x0001 /* Ledger Nano S */}, 0xffa0, 0, newLedgerDriver) + return newHub(LedgerScheme, 0x2c97, []uint16{ + // Original product IDs + 0x0000, /* Ledger Blue */ + 0x0001, /* Ledger Nano S */ + 0x0004, /* Ledger Nano X */ + + // Upcoming product IDs: https://www.ledger.com/2019/05/17/windows-10-update-sunsetting-u2f-tunnel-transport-for-ledger-devices/ + 0x0015, /* HID + U2F + WebUSB Ledger Blue */ + 0x1015, /* HID + U2F + WebUSB Ledger Nano S */ + 0x4015, /* HID + U2F + WebUSB Ledger Nano X */ + 0x0011, /* HID + WebUSB Ledger Blue */ + 0x1011, /* HID + WebUSB Ledger Nano S */ + 0x4011, /* HID + WebUSB Ledger Nano X */ + }, 0xffa0, 0, newLedgerDriver) } // NewTrezorHub creates a new hardware wallet manager for Trezor devices. |