-fno-warn-tabs
-- -fhide-source-paths
build-depends:
- hjugement >= 2.0
- , hjugement-protocol >= 0.0.1
+ hjugement >= 2.0.2
+ , hjugement-protocol >= 0.0.6
, aeson >= 1.3
, base >= 4.6 && < 5
, base64-bytestring >= 1.0
, pipes-text >= 0.0.2.5
, random >= 1.1
, reflection >= 2.1
- , symantic-cli >= 2.4
+ , symantic-cli >= 2.4.1
, symantic-document >= 1.5
, terminal-size >= 0.3
, text >= 1.2
let trusteeKeysPath = global_dir FP.</> "public_keys.jsons"
trusteeKeys :: [VP.TrusteePublicKey c] <- runPipeWithError $
Pip.toListM' $ readJSON trusteeKeysPath
+ forM_ trusteeKeys $ \trusteeKey ->
+ case runExcept $ VP.verifyIndispensableTrusteePublicKey trusteeKey of
+ Left err -> outputError $ Doc.from (show err)
+ Right () -> return ()
let grades = List.nub administratorElection_grades
unless (List.length grades > 1) $
outputError $ "at least two distinct grades are needed"