summaryrefslogtreecommitdiffhomepage
path: root/Types.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-06 21:39:38 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-06 21:58:20 -0400
commit94d351004688992f8aeac7d03da55d179ef50e8c (patch)
treed6db9a60d4b7b61e490926c8cc130d19aa6a3fca /Types.hs
parente85b077676dffa9038a7f34e57523e77c3945261 (diff)
downloadkeysafe-94d351004688992f8aeac7d03da55d179ef50e8c.tar.gz
more cost calculation and refactored Tunables
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs11
1 files changed, 0 insertions, 11 deletions
diff --git a/Types.hs b/Types.hs
index 2be82a8..3b5d39f 100644
--- a/Types.hs
+++ b/Types.hs
@@ -63,16 +63,5 @@ instance Encodable ObjectIdent where
n <- readMaybe (B8.unpack ns)
return $ ObjectIdent (ShardNum n) keyident
--- | An estimated cost to perform an operation.
-data Cost = CPUCost Seconds | GPUCost Seconds
- deriving (Show)
-
-newtype Seconds = Seconds NominalDiffTime
- deriving (Show)
-
data Benchmark t = Benchmark { expectedBenchmark :: t, actualBenchmark :: t }
deriving (Show)
-
--- | In testing mode, the cryptographic difficulty is dialed back.
-data RunMode = SecureMode | TestingMode
- deriving (Show)