ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Peras.Voting.Committee

Description

Support for using concrete votes and certificates with multiple voting committee implementations.

Synopsis

Peras support for multiple voting committee implementations

class PerasVoteCompatibleWithVotingCommittee vote crypto committee | vote → crypto where Source #

Conversion between (concrete) Peras votes and (abstract) committee votes.

NOTE: the functional dependency vote -> crypto explicitly ties each concrete Peras vote type to a specific crypto scheme.

Methods

toPerasVoteVote crypto committee → Either PerasConversionError vote Source #

fromPerasVote ∷ vote → Either PerasConversionError (Vote crypto committee) Source #

class PerasCertCompatibleWithVotingCommittee cert crypto committee | cert → crypto where Source #

Conversion between (concrete) Peras certificates and (abstract) committee certificates.

NOTE: the functional dependency cert -> crypto explicitly ties each concrete Peras certificate type to a specific crypto scheme.

Methods

toPerasCertCert crypto committee → Either PerasConversionError cert Source #

fromPerasCert ∷ cert → Either PerasConversionError (Cert crypto committee) Source #