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

Test.Cardano.Ledger.Constrained.Conway.Cert

Description

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

Synopsis

Documentation

certEnvSpec ∷ ∀ era. EraSpecPParams era ⇒ WitUniv era → Specification (CertEnv era) Source #

conwayTxCertSpec ∷ ∀ era. era ~ ConwayEraWitUniv era → CertEnv era → CertState era → Specification (ConwayTxCert era) Source #

genesisDelegCertSpec ∷ ∀ era. (AtMostEra BabbageEra era, Era era) ⇒ DState era → Specification GenesisDelegCert Source #

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

computeSetsDState era → (KeyHash 'GenesisSet (VRFVerKeyHash 'GenDelegVRF), KeyHash 'GenesisSet (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

showsPrecIntCertKeyShowS #

showCertKeyString #

showList ∷ [CertKey] → ShowS #

Eq CertKey Source # 
Instance details

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

Methods

(==)CertKeyCertKeyBool #

(/=)CertKeyCertKeyBool #

Ord CertKey Source # 
Instance details

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

Methods

compareCertKeyCertKeyOrdering #

(<)CertKeyCertKeyBool #

(<=)CertKeyCertKeyBool #

(>)CertKeyCertKeyBool #

(>=)CertKeyCertKeyBool #

maxCertKeyCertKeyCertKey #

minCertKeyCertKeyCertKey #

conwayTxCertKeyConwayTxCert era → CertKey Source #

Compute the aggregate key type of a Certificater