| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Peras.Crypto.BLS
Contents
Description
BLS-based crypto scheme used in Peras voting committees
Synopsis
- data PerasBLSCrypto
- type family ElectionId crypto
- type family VoteCandidate crypto
- data PerasPrivateKey = PerasPrivateKey {}
- data PerasPublicKey = PerasPublicKey {}
- data family VoteSignature crypto
- data family VRFElectionInput crypto
- data family VRFOutput crypto
- type family AggregateVoteVerificationKey crypto
- type family AggregateVoteSignature crypto
- newtype PerasBLSCryptoAggregateVoteVerificationKey = PerasBLSCryptoAggregateVoteVerificationKey {}
- newtype PerasBLSCryptoAggregateVoteSignature = PerasBLSCryptoAggregateVoteSignature {}
Documentation
data PerasBLSCrypto Source #
BLS-based crypto scheme used in Peras voting committees
Instances
type family ElectionId crypto Source #
Election identifiers
Instances
| type ElectionId PerasBLSCrypto Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS | |
type family VoteCandidate crypto Source #
Vote candidates, i.e., what's being voted for
Instances
| type VoteCandidate PerasBLSCrypto Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS | |
data PerasPrivateKey Source #
Private key of a Peras committee member
Constructors
| PerasPrivateKey | |
Fields | |
data family VoteSignature crypto Source #
Cryptographic signature of a vote
Instances
| FromCBOR (VoteSignature PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS Methods fromCBOR ∷ Decoder s (VoteSignature PerasBLSCrypto) Source # label ∷ Proxy (VoteSignature PerasBLSCrypto) → Text Source # | |
| ToCBOR (VoteSignature PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS Methods toCBOR ∷ VoteSignature PerasBLSCrypto → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (VoteSignature PerasBLSCrypto) → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [VoteSignature PerasBLSCrypto] → Size Source # | |
| Show (VoteSignature PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS Methods showsPrec ∷ Int → VoteSignature PerasBLSCrypto → ShowS # | |
| Eq (VoteSignature PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS | |
| newtype VoteSignature PerasBLSCrypto Source # | |
data family VRFElectionInput crypto Source #
Input to the verifiable random function.
This is fixed across all participants for a given election.
Instances
| Show (VRFElectionInput PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS Methods showsPrec ∷ Int → VRFElectionInput PerasBLSCrypto → ShowS # | |
| Eq (VRFElectionInput PerasBLSCrypto) Source # | |
| newtype VRFElectionInput PerasBLSCrypto Source # | |
data family VRFOutput crypto Source #
Output of the verifiable random function
Instances
| FromCBOR (VRFOutput PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS | |
| ToCBOR (VRFOutput PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS | |
| Show (VRFOutput PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS | |
| Eq (VRFOutput PerasBLSCrypto) Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS Methods (==) ∷ VRFOutput PerasBLSCrypto → VRFOutput PerasBLSCrypto → Bool # (/=) ∷ VRFOutput PerasBLSCrypto → VRFOutput PerasBLSCrypto → Bool # | |
| newtype VRFOutput PerasBLSCrypto Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS | |
type family AggregateVoteVerificationKey crypto Source #
Aggregate vote verification keys
For testing purposes
newtype PerasBLSCryptoAggregateVoteVerificationKey Source #
Wrapper around the aggregate vote signatures.
Constructors
| PerasBLSCryptoAggregateVoteVerificationKey | |
newtype PerasBLSCryptoAggregateVoteSignature Source #
Wrapper around the aggregate vote verification keys.
Constructors
| PerasBLSCryptoAggregateVoteSignature | |
Instances
| FromCBOR PerasBLSCryptoAggregateVoteSignature Source # | |
| ToCBOR PerasBLSCryptoAggregateVoteSignature Source # | |
Defined in Ouroboros.Consensus.Peras.Crypto.BLS Methods toCBOR ∷ PerasBLSCryptoAggregateVoteSignature → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy PerasBLSCryptoAggregateVoteSignature → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [PerasBLSCryptoAggregateVoteSignature] → Size Source # | |
| Show PerasBLSCryptoAggregateVoteSignature Source # | |
| Eq PerasBLSCryptoAggregateVoteSignature Source # | |