Browse Source
Merge pull request #516 from gre/legacy-ripple-derivation
add a legacy derivation for ripple
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
src/helpers/derivations.js
|
|
@ -11,9 +11,12 @@ const ethLegacyMEW: Derivation = ({ x }) => `44'/60'/0'/${x}` |
|
|
|
|
|
|
|
const etcLegacyMEW: Derivation = ({ x }) => `44'/60'/160720'/${x}` |
|
|
|
|
|
|
|
const rippleLegacy: Derivation = ({ x }) => `44'/144'/0'/${x}'` |
|
|
|
|
|
|
|
const legacyDerivations = { |
|
|
|
ethereum: [ethLegacyMEW], |
|
|
|
ethereum_classic: [etcLegacyMEW], |
|
|
|
ripple: [rippleLegacy], |
|
|
|
} |
|
|
|
|
|
|
|
export const standardDerivation: Derivation = ({ currency, segwit, x }) => { |
|
|
|