Skip to content
Permalink
Browse files

[Fixes #9088] Store eip1581 path

When creating the account we store as well the path specified in eip1581
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1581.md ,
`m / 43' / 60' / 1581'`.

The reason for doing so is that eventually we might want to derive an
encryption key from it, which would require the user to re-enter their
seed phrase if we would not store this.
  • Loading branch information
cammellos committed Oct 2, 2019
1 parent 78c57a3 commit 945ce4c84e42c6dbf75a6bde42c9ed0a39bb98db
Showing with 4 additions and 1 deletion.
  1. +1 −0 src/status_im/constants.cljs
  2. +3 −1 src/status_im/multiaccounts/create/core.cljs
@@ -240,6 +240,7 @@
(def ^:const path-root "m/44'/60'/0'/0")
(def ^:const path-default-wallet "m/44'/60'/0'/0/0")
(def ^:const path-whisper "m/43'/60'/1581'/0'/0")
(def ^:const path-eip1581 "m/43'/60'/1581'")

(def ^:const path-default-wallet-keyword (keyword path-default-wallet))
(def ^:const path-whisper-keyword (keyword path-whisper))
@@ -313,7 +313,9 @@
(let [{:keys [id]} (types/json->clj value)]
(status/multiaccount-store-derived
id
[constants/path-whisper constants/path-default-wallet]
[constants/path-whisper
constants/path-default-wallet
constants/path-eip1581]
hashed-password
callback))))))))

0 comments on commit 945ce4c

Please sign in to comment.
You can’t perform that action at this time.