summaryrefslogtreecommitdiffhomepage
path: root/Types.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-11 17:06:47 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-11 17:06:47 -0400
commitdca9a15b797e30b095f306955310a40f2d1013b5 (patch)
treead555b482bb22e4da74ad5f50c286d8a8c96612c /Types.hs
parent34c15caaaa96689dd342999f7d9a098903fd25b9 (diff)
downloadkeysafe-dca9a15b797e30b095f306955310a40f2d1013b5.tar.gz
Shard data type
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Types.hs b/Types.hs
index e8bd8c0..06bfbe2 100644
--- a/Types.hs
+++ b/Types.hs
@@ -33,6 +33,9 @@ newtype StorableObject = StorableObject { fromStorableObject :: B.ByteString }
newtype StorableObjectIdent = StorableObjectIdent B.ByteString
deriving (Show)
+-- | A shard, with a known number (N of M).
+data Shard = Shard Int StorableObject
+
-- | A password used to encrypt a key stored in keysafe.
newtype Password = Password B.ByteString
deriving (IsString)