feature/default_network_editable
Dan Finlay 8 years ago
parent dec282f4fd
commit f8b52a3895
  1. 13
      docs/multi_vault_planning.md

@ -85,6 +85,12 @@ If we adopt a ReactStore style unidirectional action dispatching data flow, thes
- saveAccountLabel() - saveAccountLabel()
- recoverSeed() - recoverSeed()
Additional methods, new to this:
- serialize()
- Returns pojo with optional `secret` key whose contents will be encrypted with the users' password and salt when written to disk.
- The isolation of secrets is to preserve performance when decrypting user data.
- deserialize(pojo)
### KeyChain (ReduxStore?) ### KeyChain (ReduxStore?)
// attributes // attributes
@name @name
@ -99,6 +105,9 @@ If we adopt a ReactStore style unidirectional action dispatching data flow, thes
serialize(cb) -> obj serialize(cb) -> obj
deserialize(obj) deserialize(obj)
dispatch({ type: <str>, value: <pojo> })
### KeyChainViewState ### KeyChainViewState
// The serialized, renderable keychain data // The serialized, renderable keychain data
accountList: [], accountList: [],
@ -173,3 +182,7 @@ KeyChainViewState {
} }
} }
## A note on the security of arbitrary action dispatchers
Since keychains will be dispatching actions that are then passed through the background process to be routed, we should not trust or require them to include their own keychain ID as a prefix to their action, but we should tack it on ourselves, so that no action dispatched by a KeyChainComponent ever reaches any KeyChain other than its own.

Loading…
Cancel
Save