diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-11 17:06:47 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-11 17:06:47 -0400 |
commit | dca9a15b797e30b095f306955310a40f2d1013b5 (patch) | |
tree | ad555b482bb22e4da74ad5f50c286d8a8c96612c /Types.hs | |
parent | 34c15caaaa96689dd342999f7d9a098903fd25b9 (diff) | |
download | keysafe-dca9a15b797e30b095f306955310a40f2d1013b5.tar.gz |
Shard data type
Diffstat (limited to 'Types.hs')
-rw-r--r-- | Types.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |