diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-11 20:39:45 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-11 20:39:45 -0400 |
commit | ab3594dacb0461ae5e253544f65c3e3d50eb721d (patch) | |
tree | 306ad29a1cde9ce31a8364a9529953f93239013e /Storage.hs | |
parent | f5a53103a95b93f5cdb3cfe0c7043c190e591f0c (diff) | |
download | keysafe-ab3594dacb0461ae5e253544f65c3e3d50eb721d.tar.gz |
obscure shard timestamps
Diffstat (limited to 'Storage.hs')
-rw-r--r-- | Storage.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,9 +10,14 @@ import Types data Storage = Storage { storeShard :: StorableObjectIdent -> Shard -> IO StoreResult , retrieveShard :: ShardNum -> StorableObjectIdent -> IO RetrieveResult + , obscureShards :: IO ObscureResult + -- ^ run after making some changes, to avoid correlation attacks } data StoreResult = StoreSuccess | StoreFailure String deriving (Show) data RetrieveResult = RetrieveSuccess Shard | RetrieveFailure String + +data ObscureResult = ObscureSuccess | ObscureFailure String + deriving (Show) |