| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Peras.Vote.V1
Description
Concrete Peras vote types using BLS signatures.
NOTE: this module is meant to be imported qualified.
Synopsis
- data PerasVote blk = PerasVote {}
- castPerasVote ∷ ∀ blk' blk. PerasVote blk → PerasVote blk'
- data PerasVoteEligibilityProof
Documentation
Concrete Peras votes using BLS signatures
NOTE: the blk parameter is a phantom type used to track the block type that
the vote is associated with, to ensure injectivity when PerasVote is
used as a type instance for BlockSupportsPeras class.
Constructors
| PerasVote | |
Fields
| |
Instances
castPerasVote ∷ ∀ blk' blk. PerasVote blk → PerasVote blk' Source #
Retag a PerasVote with a new phantom blk type.
data PerasVoteEligibilityProof Source #
Proof of eligibility for voting for committee members
Constructors
| PersistentPerasVoteEligibilityProof | Persistent committee members require no additional proof of eligibility |
| NonPersistentPerasVoteEligibilityProof !(VRFOutput PerasBLSCrypto) | Non-persistent committee members provide a VRF proof of eligibility |
Instances
| FromCBOR PerasVoteEligibilityProof Source # | |||||
Defined in Ouroboros.Consensus.Peras.Vote.V1 | |||||
| ToCBOR PerasVoteEligibilityProof Source # | |||||
Defined in Ouroboros.Consensus.Peras.Vote.V1 Methods toCBOR ∷ PerasVoteEligibilityProof → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy PerasVoteEligibilityProof → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [PerasVoteEligibilityProof] → Size Source # | |||||
| Eq PerasVoteEligibilityProof Source # | |||||
Defined in Ouroboros.Consensus.Peras.Vote.V1 | |||||
| Generic PerasVoteEligibilityProof Source # | |||||
Defined in Ouroboros.Consensus.Peras.Vote.V1 Associated Types
| |||||
| Show PerasVoteEligibilityProof Source # | |||||
Defined in Ouroboros.Consensus.Peras.Vote.V1 Methods showsPrec ∷ Int → PerasVoteEligibilityProof → ShowS # | |||||
| NoThunks PerasVoteEligibilityProof Source # | |||||
Defined in Ouroboros.Consensus.Peras.Vote.V1 | |||||
| type Rep PerasVoteEligibilityProof Source # | |||||
Defined in Ouroboros.Consensus.Peras.Vote.V1 type Rep PerasVoteEligibilityProof = D1 ('MetaData "PerasVoteEligibilityProof" "Ouroboros.Consensus.Peras.Vote.V1" "ouroboros-consensus-4.0.0.0-inplace" 'False) (C1 ('MetaCons "PersistentPerasVoteEligibilityProof" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "NonPersistentPerasVoteEligibilityProof" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VRFOutput PerasBLSCrypto)))) | |||||