diff options
Diffstat (limited to 'Types.hs')
-rw-r--r-- | Types.hs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |