1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
Dan Finlay b52346388b Added new modular private key import system
Now any strategy for importing a private key that can be described as a pure function can be very easily turned into a MetaMask import strategy.

I've created a generic and reusable UI action called `importNewAccount(strategy, args)`.

The `strategy` is a unique identifier defined in `app/scripts/account-import-strategies`, and the `args` will be passed to the member of the `strategies` array whose key matches the strategy string.

Strategies return private key hex strings, and are used by the metamask-controller to create a new keyring, and select that new account, before calling back.

This also implements @frankiebee's idea of showing the imported account when it's been imported (my oversight!).

This commit only moves us to this architecture, keeping feature parity for private key import, but has some untested code for importing geth-style JSON files as well!
2017-01-18 15:20:48 -08:00
..
accounts Added new modular private key import system 2017-01-18 15:20:48 -08:00
components Merge branch 'i328-MultiVault-v1' into i715-AddImportMenu 2017-01-17 13:58:54 -08:00
css Merge branch 'i328-MultiVault-v1' into i715-AddImportMenu 2017-01-17 13:58:54 -08:00
first-time Merge pull request #937 from MetaMask/i900-forgot-password-flow 2016-12-19 16:01:01 -08:00
img Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
keychains/hd Redirect to seed word screen for forgotten passwords. 2016-12-19 14:54:24 -08:00
reducers Merge branch 'i328-MultiVault-v1' into i715-AddImportMenu 2017-01-17 13:58:54 -08:00
account-detail.js remove orphaned comment 2017-01-13 11:30:58 -08:00
actions.js Added new modular private key import system 2017-01-18 15:20:48 -08:00
app.js Remove outdated reference 2017-01-17 16:35:11 -08:00
conf-tx.js Fix message signing UI rendering 2017-01-16 23:59:25 -08:00
config.js Lint. 2016-12-20 16:45:22 -08:00
conversion.json Convert conversion util to pure json. 2016-11-18 16:49:39 -08:00
info.js Fix test to log out despite number of menu items 2017-01-17 16:49:08 -08:00
new-keychain.js Linted & added salting to vault 2016-10-20 11:33:18 -07:00
reducers.js Linting to the max. 2016-11-11 10:26:12 -08:00
root.js Manually linted 2016-06-21 13:56:04 -07:00
send.js Fix up wording 2016-10-19 17:39:41 -07:00
settings.js Add eth classic to provider menu 2016-07-28 10:53:51 -07:00
store.js Move tos hash logic to build phase. Create dynamic global variables based on build. 2016-10-11 14:32:03 -07:00
template.js Manually linted 2016-06-21 13:56:04 -07:00
unlock.js Merge branch 'i328-MultiVault-v1' into i715-AddImportMenu 2017-01-17 13:58:54 -08:00
util.js Change regex in isHex function 2016-10-21 16:39:14 -07:00