haskell-tor-0.1.1: A Haskell Tor Node

Safe HaskellNone
LanguageHaskell2010

Tor.DataFormat.Consensus

Description

Routines for parsing a consensus document.

Synopsis

Documentation

data Authority Source

An authority that might sign a consensus document.

Instances

parseConsensusDocument :: ByteString -> Either String (Consensus, ByteString, ByteString) Source

Parse a consensus document, returning either an error or the parsed consensus and the SHA1 and SHA256 hashes of that consensus, for later validation.