MyCrypto/common/config/dpaths.js
skubakdj c88e96d603 Wallet Decrypt - Mnemonic (#180)
* add 'bip39' package

* add mnemonic decrypt, wallet wrapper

* add mnemonic path config

* add mnemonic support to deterministic components

* add mnemonic support

* accomodate for ledger ETH path

* remove comments

* update comments regarding path length

* rename modal open handler

* make several props optional

* add basic tests for mnemonic decrypt

* make flow happy, add user error notifications

* convert dpaths to js file, update references

* add ledger path to test

* Trezor DPath Fix (#196)

* Match v3 more closely.

* Require wallet index on deterministic wallets, update trezor to send index.

* remove redundent stripAndLower function and rename existing stripHex to stripHexPrefixAndLower
2017-09-15 12:29:38 -07:00

51 lines
714 B
JavaScript

const ETH_DEFAULT = {
label: 'Default (ETH)',
value: "m/44'/60'/0'/0"
};
const ETH_TREZOR = {
label: 'TREZOR (ETH)',
value: "m/44'/60'/0'/0"
};
const ETH_LEDGER = {
label: 'Ledger (ETH)',
value: "m/44'/60'/0'"
};
const ETC_LEDGER = {
label: 'Ledger (ETC)',
value: "m/44'/60'/160720'/0'"
};
const ETC_TREZOR = {
label: 'TREZOR (ETC)',
value: "m/44'/61'/0'/0"
};
const TESTNET = {
label: 'Testnet',
value: "m/44'/1'/0'/0"
};
const EXPANSE = {
label: 'Expanse',
value: "m/44'/40'/0'/0"
};
const TREZOR = [ETH_TREZOR, ETC_TREZOR, TESTNET];
const MNEMONIC = [
ETH_DEFAULT,
ETH_LEDGER,
ETC_LEDGER,
ETC_TREZOR,
TESTNET,
EXPANSE
];
export default {
TREZOR,
MNEMONIC
};