summaryrefslogtreecommitdiffhomepage
path: root/HTTP.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-12 15:10:18 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-12 15:10:18 -0400
commit483cc9e1fe40899c7f045d71d75aaa5ca99db3fb (patch)
treeef49c9da2a880dd4fc60c8ae5b04f8decb10c220 /HTTP.hs
parent84d892e71ed5732bf64d550086d879ab9317f26d (diff)
downloadkeysafe-483cc9e1fe40899c7f045d71d75aaa5ca99db3fb.tar.gz
new module
Diffstat (limited to 'HTTP.hs')
-rw-r--r--HTTP.hs11
1 files changed, 1 insertions, 10 deletions
diff --git a/HTTP.hs b/HTTP.hs
index f1e9e39..db9ef4d 100644
--- a/HTTP.hs
+++ b/HTTP.hs
@@ -14,6 +14,7 @@ module HTTP where
import Types
import Types.Storage
+import HTTP.ProofOfWork
import Serialization ()
import Servant.API
import Data.Text
@@ -40,16 +41,6 @@ type V1 = "v1"
newtype Motd = Motd Text
deriving (Generic)
-data ProofOfWorkRequirement t
- = Result t
- | ProofOfWorkRequirement
- { leadingZeros :: Int
- , argon2Iterations :: Int
- }
- deriving (Generic)
-
-newtype ProofOfWork = ProofOfWork Text
-
type POWParam = QueryParam "proofofwork" ProofOfWork
type ObjectIdent = Capture "ident" StorableObjectIdent