summaryrefslogtreecommitdiffhomepage
path: root/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Types.hs b/Types.hs
index 18b197e..1335cdc 100644
--- a/Types.hs
+++ b/Types.hs
@@ -55,7 +55,7 @@ instance DataSize a => DataSize (Message a) where
--
-- The Signature is over both the data in the activity, and its pointer.
--
--- Note that the Signature is included in the Hash of an Activity,
+-- The Signature is included in the Hash of an Activity,
-- which is why it's part of the Activity.
data Activity a = Activity
{ activity :: a
@@ -107,12 +107,12 @@ data Hash = Hash
deriving (Show, Generic, Eq)
instance DataSize Hash where
- dataSize (Hash { hashMethod = SHA256 }) = 64
+ dataSize (Hash { hashMethod = SHA512 }) = 128
dataSize (Hash { hashMethod = SHA3 }) = 56
--- | We use SHA256. (SHA3 is included to future proof, and because it
+-- | We use SHA512. (SHA3 is included to future proof, and because it
-- improves the generated JSON.)
-data HashMethod = SHA256 | SHA3
+data HashMethod = SHA512 | SHA3
deriving (Show, Generic, Eq)
data Signature