Added BTC Legacy derivation path for RSK. This is useful for BTC-RBTC conversion

This commit is contained in:
Alessandro Viganò 2021-05-06 13:45:21 +02:00
parent e283648d60
commit 8acb7727dd
1 changed files with 6 additions and 0 deletions

View File

@ -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,
}