diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-04-18 16:35:38 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-04-18 16:35:38 -0400 |
commit | d73352f848b79224a94e531bb651897321064998 (patch) | |
tree | 4e4bb7f13113bfffc950a0451dd89b6ca8160070 /Hash.hs | |
parent | a70548f6dade6d93d482510a1b68b99327ec7f4a (diff) | |
download | debug-me-d73352f848b79224a94e531bb651897321064998.tar.gz |
initial Crypto
Will use Ed25519 because it's from DJB and well regarded and in common
use now.
Diffstat (limited to 'Hash.hs')
-rw-r--r-- | Hash.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -50,7 +50,8 @@ instance Hashable Seen where hash v = hash $ Tagged "Seen" [hash (seenData v)] instance Hashable Signature where - hash (Signature s) = hash $ Tagged "Signature" s + hash (Ed25519 s) = hash $ Tagged "Ed25519" s + hash Unsigned = hash $ Tagged "Unsigned" (mempty :: B.ByteString) -- | Hash a list of hashes by hashing the concacenation of the hashes. instance Hashable [Hash] where |