blob: 45cc96de20fda6532d89e4040136f8b3eead6b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{- Copyright 2016 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
{-# LANGUAGE DeriveGeneric #-}
module HTTP.ProofOfWork where
import Types
import qualified Data.Text as T
import GHC.Generics
data ProofOfWorkRequirement t
= Result t
| ProofOfWorkRequirement
{ leadingZeros :: Int
, argon2Iterations :: Int
}
deriving (Generic)
newtype ProofOfWork = ProofOfWork T.Text
|