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 ∷ ∀ fn era. (EraSpecPParams era, IsConwayUniv fn) ⇒ WitUniv era → Specification fn (CertEnv era) Source #

conwayTxCertSpec ∷ ∀ fn era. (IsConwayUniv fn, era ~ ConwayEra) ⇒ WitUniv era → CertEnv era → CertState era → Specification fn (ConwayTxCert era) Source #

genesisDelegCertSpec ∷ ∀ fn era. (AtMostEra BabbageEra era, IsConwayUniv fn, Era era) ⇒ DState era → Specification fn 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

shelleyTxCertSpec ∷ ∀ fn era. (AtMostEra BabbageEra era, EraSpecPParams era, IsConwayUniv fn) ⇒ WitUniv era → CertEnv era → CertState era → Specification fn (ShelleyTxCert era) Source #

class (IsConwayUniv fn, HasSpec fn (TxCert era), Era era) ⇒ EraSpecCert era fn where Source #

Methods

txCertSpecWitUniv era → CertEnv era → CertState era → Specification fn (TxCert era) Source #

txCertKeyTxCert era → CertKey Source #

Instances

Instances details
IsConwayUniv fn ⇒ EraSpecCert AllegraEra fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert AlonzoEra fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert BabbageEra fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert ConwayEra fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert MaryEra fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert ShelleyEra fn 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)

conwayTxCertKeyConwayTxCert era → CertKey Source #

Compute the aggregate key type of a Certificater