Moduleouroboros-consensus-4.2.1.0
Ouroboros.Consensus.Committee.Class
- 2 types
- 1 class
- 6 values
- Packageouroboros-consensus-4.2.1.0
- Exports9
- LicenceApache-2.0
class
class CryptoSupportsVoteSigning crypto => CryptoSupportsVotingCommittee crypto committee whereAssociated types
data family VotingCommittee crypto committeedata family VotingCommitteeInput crypto committeedata family VotingCommitteeError crypto committeedata family EligibilityWitness crypto committeedata family Vote crypto committeedata family Cert crypto committee
Methods
mkVotingCommittee :: VotingCommitteeInput crypto committee -> Either (VotingCommitteeError crypto committee) (VotingCommittee crypto committee)checkShouldVote :: VotingCommittee crypto committee -> PoolId -> PrivateKey crypto -> ElectionId crypto -> Either (VotingCommitteeError crypto committee) (Maybe (EligibilityWitness crypto committee))forgeVote :: EligibilityWitness crypto committee -> PrivateKey crypto -> ElectionId crypto -> VoteCandidate crypto -> Vote crypto committeeverifyVote :: VotingCommittee crypto committee -> Vote crypto committee -> Either (VotingCommitteeError crypto committee) (EligibilityWitness crypto committee)eligiblePartyVoteWeight :: VotingCommittee crypto committee -> EligibilityWitness crypto committee -> VoteWeightforgeCert :: UniqueVotesWithSameTarget crypto committee -> Either (VotingCommitteeError crypto committee) (Cert crypto committee)verifyCert :: VotingCommittee crypto committee -> Cert crypto committee -> Either (VotingCommitteeError crypto committee) (NE [EligibilityWitness crypto committee])
Instances2CryptoSupportsVotingCommittee
CryptoSupportsAggregateVoteSigning crypto => CryptoSupportsVotingCommittee crypto EveryoneVotesDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Committee.EveryoneVotes(CryptoSupportsAggregateVoteSigning crypto, CryptoSupportsBatchVRFVerification crypto) => CryptoSupportsVotingCommittee crypto WFALSDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Committee.WFALS
Constructors
DuplicateVotes (NE [vote])TargetMismatch vote (NE [vote])