summaryrefslogtreecommitdiffhomepage
path: root/Storage.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-11 20:39:45 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-11 20:39:45 -0400
commitab3594dacb0461ae5e253544f65c3e3d50eb721d (patch)
tree306ad29a1cde9ce31a8364a9529953f93239013e /Storage.hs
parentf5a53103a95b93f5cdb3cfe0c7043c190e591f0c (diff)
downloadkeysafe-ab3594dacb0461ae5e253544f65c3e3d50eb721d.tar.gz
obscure shard timestamps
Diffstat (limited to 'Storage.hs')
-rw-r--r--Storage.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Storage.hs b/Storage.hs
index 6b23c33..275f3fe 100644
--- a/Storage.hs
+++ b/Storage.hs
@@ -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)