From 8acb7727dda6462bbdf21a639d49775784bf98a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Vigano=CC=80?= Date: Thu, 6 May 2021 13:45:21 +0200 Subject: [PATCH] Added BTC Legacy derivation path for RSK. This is useful for BTC-RBTC conversion --- old-ui/app/components/connect-hardware/util.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/old-ui/app/components/connect-hardware/util.js b/old-ui/app/components/connect-hardware/util.js index 8ea2f7499..7ed9344e5 100644 --- a/old-ui/app/components/connect-hardware/util.js +++ b/old-ui/app/components/connect-hardware/util.js @@ -22,6 +22,10 @@ function getHdPaths (network) { label: `Legacy (MEW / MyCrypto)`, value: customHdPaths[networkInteger]['ledger'], }, + { + label: `BTC (BTC-RBTC Bridge)`, + value: customHdPaths[networkInteger]['ledgerBTC'], + }, ] } else { hdPaths = [ @@ -41,6 +45,7 @@ function getHdPaths (network) { const hdRSKMainnetTrezorPath = `m/44'/137'/0'/0` const hdRSKMainnetLedgerPath = `m/44'/137'/0'/0` const hdRSKMainnetLedgerLivePath = `m/44'/137'/0'/0` +const hdRSKMainnetLedgerBTCPath = `m/44'/0'/0'/0` const hdRSKTestnetTrezorPath = `m/44'/37310'/0'/0` const hdRSKTestnetLedgerPath = `m/44'/37310'/0'/0` @@ -54,6 +59,7 @@ const customHdPaths = {} customHdPaths[RSK_CODE] = { trezor: hdRSKMainnetTrezorPath, ledger: hdRSKMainnetLedgerPath, + ledgerBTC: hdRSKMainnetLedgerBTCPath, ledgeLive: hdRSKMainnetLedgerLivePath, }