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) ⇒ Specification fn (CertEnv era) Source #

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

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

computeSetsDState era → (KeyHash 'Genesis (EraCrypto era) → Set (Hash (EraCrypto era) (VerKeyVRF (EraCrypto era))), KeyHash 'Genesis (EraCrypto era) → Set (KeyHash 'GenesisDelegate (EraCrypto era))) 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 (Era era, IsConwayUniv fn, HasSpec fn (TxCert era)) ⇒ EraSpecCert era fn where Source #

Methods

txCertSpecCertEnv era → CertState era → Specification fn (TxCert era) Source #

txCertKeyTxCert era → CertKey (EraCrypto era) Source #

Instances

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

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

IsConwayUniv fn ⇒ EraSpecCert Alonzo fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert Babbage fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert Conway fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert Mary fn Source # 
Instance details

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

IsConwayUniv fn ⇒ EraSpecCert Shelley fn Source # 
Instance details

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

data CertKey c 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 c) Source # 
Instance details

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

Methods

showsPrecIntCertKey c → ShowS Source #

showCertKey c → String Source #

showList ∷ [CertKey c] → ShowS Source #

Eq (CertKey c) Source # 
Instance details

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

Methods

(==)CertKey c → CertKey c → Bool Source #

(/=)CertKey c → CertKey c → Bool Source #

Ord (CertKey c) Source # 
Instance details

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

Methods

compareCertKey c → CertKey c → Ordering Source #

(<)CertKey c → CertKey c → Bool Source #

(<=)CertKey c → CertKey c → Bool Source #

(>)CertKey c → CertKey c → Bool Source #

(>=)CertKey c → CertKey c → Bool Source #

maxCertKey c → CertKey c → CertKey c Source #

minCertKey c → CertKey c → CertKey c Source #

conwayTxCertKeyConwayTxCert era → CertKey (EraCrypto era) Source #

Compute the aggregate key type of a Certificater