summaryrefslogtreecommitdiffhomepage
path: root/Serialization.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-19 13:00:34 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-19 13:00:34 -0400
commit6261f7e58b764ae48293bee3b1863b518e9f0442 (patch)
treed9260d1beeced137e36c1ae1945c499d85e91608 /Serialization.hs
parentd3323ab8e9e39bcb0a6493d33efa265073920a7d (diff)
downloadkeysafe-6261f7e58b764ae48293bee3b1863b518e9f0442.tar.gz
rename shard -> share
This makes it clearer that it's not a chunk of data, but a Shamir share.
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