Dan Finlay
5bf1018d75
Flattened addTx async methods
8 years ago
Dan Finlay
ff3f6cc36a
Bind ethQuery to estimateGas to allow it to be moved around.
8 years ago
Dan Finlay
85d5b12f8d
Fix tx adding code
...
Broken in this commit:
bc39cd7b89
Synchronous methods were added to an `async.waterfall` array.
This commit also removes the delegate call checking, since we concluded it was misinformed.
8 years ago
Dan Finlay
4b6b1db4f0
Ordered keyringController methods the same in metamask-controller
8 years ago
Dan Finlay
b81f00849d
Annotated KeyringController
8 years ago
Dan Finlay
80e76b45ee
Denodeify most of KeyringController
...
Mostly Fixes #893
A couple methods cache callbacks, and will require a larger refactor to fully denodeify.
Specifically, our methods involving web3 requests to sign a tx, sign a message, and approve or cancel either of those.
I think we should postpone those until the TxManager refactor, since it will likely handle this response caching itself.
8 years ago
Dan Finlay
d9dc2eac63
Fix more async usage of KeyringController
8 years ago
Dan Finlay
230a0ab876
Fix more keyring asyncifying tests
8 years ago
Dan Finlay
600f5c31db
Mostly got async keyringController tests passing
8 years ago
Dan Finlay
c77d355e98
Complete first pass at asyncrhonizing keyring controller
8 years ago
Dan Finlay
2efab79f5b
Asynced keyrings and started on controller
8 years ago
Dan Finlay
05c8658ff3
Fix new encryptor migration logic
8 years ago
Dan Finlay
822face7a3
Fix password reference
8 years ago
Dan Finlay
6ebdebc0a5
Remove line of cruft
8 years ago
Dan Finlay
4b7b0a86d8
Refine isInitialized derivation method
8 years ago
Dan Finlay
de8da9ddf6
Simplify Encryptor API Surface
...
At least, the portion of it that we use.
Moved salting within the encryptor, so it does not need to be managed externally.
KeyringController now caches the password instead of a passwordDerivedKey, since it is ignorant of the salt.
Encryptor payload is now in a JSON format, so its portions are both base64 encoded *and* labeled appropriately. The format is `{ "data": "0x0", "iv": "0x0", "salt": "string" }`.
Fixes #843
Fixes #859
8 years ago
kumavis
bc39cd7b89
KeyringController - estimateGas->analyzeGasUsage fix gasLimit + detect OOG
8 years ago
Dan Finlay
c4056a861a
Move state update outside of conditional callback block
8 years ago
Dan Finlay
606c0b7618
Remove callback type check
8 years ago
Dan Finlay
136296aad6
Began moving salt into encryptor
8 years ago
Dan Finlay
ea56426b23
Use callback in placeSeedWord method.
...
When displaying seed words, we were not using a callback, which had some race condition potential. This is simply a little cleaner and more correct.
Fixes #842
8 years ago
Dan Finlay
9fb96128e6
Rename idStoreMigrator method for clarity
...
Fixes #841
8 years ago
Dan Finlay
ced36eb201
Improve Keyring organization
...
Separated public & private methods. (Fixes #845 )
Made class method `type()` into a simple property. (Fixes #846 )
8 years ago
Kevin Serrano
1cbab788ec
Change fauceting to become a response of an emit.
8 years ago
Kevin Serrano
f5b0795ac5
change all instances of selectedAddress to selectedAccount.
8 years ago
Kevin Serrano
9123e70434
Remove entropy from encryption and project.
8 years ago
Kevin Serrano
bc6312e9e3
Promisify persistence of keyrings before returning key
...
Change single letter variables (shame)
8 years ago
Kevin Serrano
cd2442e3e7
Persist keyrings from migration to storage.
8 years ago
Dan Finlay
f229d32442
Replace old random-id code with incrementing id generator
8 years ago
Kevin Serrano
592b64a19f
Revert one cb to previous state.
8 years ago
Kevin Serrano
5bfb700fa8
Minimize dispatches by using emitters and relying on state updates.
8 years ago
Kevin Serrano
a4666de0ce
Minimize repeated code.
8 years ago
Kevin Serrano
b1fee2a1d3
Minimize repeated code.
8 years ago
Kevin Serrano
7de6b12aad
Re-enable disclaimer screen. Rename variables to reflect role more clearly.
8 years ago
Kevin Serrano
4826f7c0a0
Revert to previous anonymous function for promise.
8 years ago
Kevin Serrano
20cea5b2f5
Various keyring changes
...
- Rearrange the require statements.
- Remove unused web3.
- Simplify some callbacks and promises.
- Clarify certain parameters.
8 years ago
Kevin Serrano
23263bec7d
Linting to the max.
8 years ago
Frankie
17aac2dbc5
fix tx data so it has the network id
8 years ago
Dan Finlay
553a6da011
Fix 787 gas buffer bug
8 years ago
Dan Finlay
fc26a0a899
Fix network checking
8 years ago
Dan Finlay
abebe51f69
Add tolerance to normalize method
8 years ago
Dan Finlay
ba7d6b437f
Fix password validation and persistence issue
...
Was wiping the vault on each successful password attempt... :P
8 years ago
Kevin Serrano
2afc06287d
Implement private key exporting.
8 years ago
Dan Finlay
e0246975a7
Finish fixing nicknaming bug
8 years ago
Dan Finlay
bd2a429a85
Fix account nicknaming bug
...
When nicknaming, we weren't normalizing the input, and so we were retrieving with differently formatted addresses than we were persisting.
8 years ago
Dan Finlay
9ca3c57339
Fix vault creation bug
8 years ago
Dan Finlay
185396ff08
Fix dual vault creation bug
8 years ago
Dan Finlay
ed1917d71a
Fix initial vault creation
8 years ago
Dan Finlay
4cf1b606e4
Fix handling of migrating old vault style
...
Now old vaults are recognized as an "Initialized" MetaMask instance.
Upon logging in, when fetching the initial password-derived key, if there is no new-style vault, but there is an old style vault, it is migrated to the new format before proceeding through the usual unlocking steps.
8 years ago
Kevin Serrano
8f3db0dbc0
Add reveal of seed words.
8 years ago