summaryrefslogtreecommitdiffhomepage
path: root/Serialization.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Serialization.hs')
-rw-r--r--Serialization.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Serialization.hs b/Serialization.hs
index 8177821..eb6394c 100644
--- a/Serialization.hs
+++ b/Serialization.hs
@@ -44,10 +44,10 @@ instance Encodable StorableObject where
toByteString (StorableObject b) = b
fromByteString = Just . StorableObject
--- | A shard is serialized without its shard number. This prevents
--- an attacker from partitioning their shards by shard number.
-instance Encodable Shard where
- toByteString (Shard _n o) = toByteString o
+-- | A share is serialized without its share number. This prevents
+-- an attacker from partitioning their shares by share number.
+instance Encodable Share where
+ toByteString (Share _n o) = toByteString o
fromByteString _ = Nothing
sepChar :: Word8