nifty-wallet/ui/app/accounts/import
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
..
index.js Allow importing of private key strings 2017-01-17 16:24:45 -08:00
json.js Develop import subviews 2016-11-04 15:32:02 -07:00
private-key.js Added new modular private key import system 2017-01-18 15:20:48 -08:00
seed.js Develop import subviews 2016-11-04 15:32:02 -07:00