cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellNone
LanguageHaskell2010

Test.Cardano.Ledger.Constrained.Conway.Cert

Description

Specs necessary to generate, environment, state, and signal for the CERT rule

Synopsis

Documentation

genesisDelegCertSpec ∷ (AtMostEra "Babbage" era, Era era) ⇒ DState era → Specification GenesisDelegCert Source #

Genesis delegations only work through the Babbage era. Hence the (AtMostEra Babbage era)

computeSets ∷ DState era → (KeyHash 'GenesisRole → Set (VRFVerKeyHash 'GenDelegVRF), KeyHash 'GenesisRole → Set (KeyHash 'GenesisDelegate)) Source #

Compute 2 functions from the DState. Each function, given a KeyHash, returns a Set of Hashes, we expect certain things to be in those sets. This mimics what happens in the Cardano.Ledger.Shelley.Rules.Deleg module

class (HasSpec (TxCert era), EraCertState era) ⇒ EraSpecCert era where Source #

Instances

Instances details
EraSpecCert AllegraEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

EraSpecCert AlonzoEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

EraSpecCert BabbageEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

EraSpecCert ConwayEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

EraSpecCert MaryEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

EraSpecCert ShelleyEra Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

data CertKey Source #

Used to aggregate the key used in registering a Certificate. Different certificates use different kinds of Keys, that allows us to use one type to represent all kinds of keys (Similar to DepositPurpose)

Instances

Instances details
Show CertKey Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

Methods

showsPrec ∷ Int → CertKey → ShowS #

show ∷ CertKey → String #

showList ∷ [CertKey] → ShowS #

Eq CertKey Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

Methods

(==) ∷ CertKey → CertKey → Bool #

(/=) ∷ CertKey → CertKey → Bool #

Ord CertKey Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Conway.Cert

Methods

compare ∷ CertKey → CertKey → Ordering #

(<) ∷ CertKey → CertKey → Bool #

(<=) ∷ CertKey → CertKey → Bool #

(>) ∷ CertKey → CertKey → Bool #

(>=) ∷ CertKey → CertKey → Bool #

max ∷ CertKey → CertKey → CertKey #

min ∷ CertKey → CertKey → CertKey #

conwayTxCertKey ∷ ConwayTxCert era → CertKey Source #

Compute the aggregate key type of a Certificater