ouroboros-consensus-shelley-0.1.0.1: Shelley ledger integration in the Ouroboros consensus layer
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.Shelley.Eras

Synopsis

Eras based on the Shelley ledger

data AlonzoEra c Source #

The Alonzo era

Instances

Instances details
Crypto c => ExtendedUTxO ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => Era ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Associated Types

type Crypto ( AlonzoEra c) Source #

Crypto c => ValidateScript ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => SupportsSegWit ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Associated Types

type TxSeq ( AlonzoEra c) = (r :: Type ) Source #

ShelleyEraCrypto c => ShelleyBasedEra ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => CanStartFromGenesis ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => CLI ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

ShelleyEraCrypto c => ApplyTx ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

ShelleyEraCrypto c => ApplyBlock ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => UsesValue ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => UsesTxOut ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => UsesPParams ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

Crypto c => GetLedgerView ( AlonzoEra c)
Instance details

Defined in Cardano.Protocol.TPraos.API

( PraosCrypto c, DSignable c ( Hash c EraIndependentTxBody )) => ShelleyBasedEra ( AlonzoEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

ShelleyBasedEra ( AlonzoEra c) => TranslateEra ( AlonzoEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

( Crypto c, Tx ( AlonzoEra c) ~ ValidatedTx ( AlonzoEra c)) => TranslateEra ( AlonzoEra c) Tx
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

Crypto c => ValidateAuxiliaryData ( AlonzoEra c) c
Instance details

Defined in Cardano.Ledger.Alonzo

( PraosCrypto c, Signable ( DSIGN c) ( Hash ( HASH c) EraIndependentTxBody )) => ShelleyCompatible ( TPraos c) ( AlonzoEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.HFEras

ShelleyCompatible p ( AlonzoEra c) => TxLimits ( ShelleyBlock p ( AlonzoEra c)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool

type EraRule "BBODY" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "DELEG" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "DELEGS" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "DELPL" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "EPOCH" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "LEDGER" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "LEDGERS" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "MIR" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "NEWEPOCH" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "NEWPP" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "POOL" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "POOLREAP" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "PPUP" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "RUPD" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "SNAP" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "TICK" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "TICKF" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "UPEC" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "UTXO" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "UTXOS" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type EraRule "UTXOW" ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type Tx ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type Value ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type TxOut ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type Crypto ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type Crypto ( AlonzoEra c) = c
type TxSeq ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type PreviousEra ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationContext ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TxBody ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type Script ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type AuxiliaryData ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type PParams ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type PParamsDelta ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type Witnesses ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type AdditionalGenesisConfig ( AlonzoEra c)
Instance details

Defined in Cardano.Ledger.Alonzo

type TranslationError ( AlonzoEra c) ProposedPPUpdates
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) PPUPState
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) UTxO
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) UTxOState
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) LedgerState
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) EpochState
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) ShelleyGenesis
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) NewEpochState
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) Tx
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError ( AlonzoEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

type TranslationError ( AlonzoEra c) ( PParams' f)
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TxMeasure ( ShelleyBlock p ( AlonzoEra c)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool

data BabbageEra c Source #

The Babbage era

Instances

Instances details
Crypto c => ExtendedUTxO ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => Era ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Associated Types

type Crypto ( BabbageEra c) Source #

Crypto c => ValidateScript ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => SupportsSegWit ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Associated Types

type TxSeq ( BabbageEra c) = (r :: Type ) Source #

ShelleyEraCrypto c => ShelleyBasedEra ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => CanStartFromGenesis ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => CLI ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

ShelleyEraCrypto c => ApplyTx ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

ShelleyEraCrypto c => ApplyBlock ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => UsesValue ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => UsesTxOut ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => UsesPParams ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

Crypto c => GetLedgerView ( BabbageEra c)
Instance details

Defined in Cardano.Protocol.TPraos.API

PraosCrypto c => ShelleyBasedEra ( BabbageEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

ShelleyBasedEra ( BabbageEra c) => TranslateEra ( BabbageEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

( Crypto c, Tx ( BabbageEra c) ~ ValidatedTx ( BabbageEra c)) => TranslateEra ( BabbageEra c) Tx
Instance details

Defined in Cardano.Ledger.Babbage.Translation

Crypto c => ValidateAuxiliaryData ( BabbageEra c) c
Instance details

Defined in Cardano.Ledger.Babbage

PraosCrypto c => ShelleyCompatible ( Praos c) ( BabbageEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.HFEras

( PraosCrypto c, PraosCrypto c) => ShelleyCompatible ( TPraos c) ( BabbageEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.HFEras

ShelleyCompatible p ( BabbageEra c) => TxLimits ( ShelleyBlock p ( BabbageEra c)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool

type EraRule "BBODY" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "DELEG" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "DELEGS" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "DELPL" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "EPOCH" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "LEDGER" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "LEDGERS" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "MIR" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "NEWEPOCH" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "NEWPP" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "POOL" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "POOLREAP" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "PPUP" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "RUPD" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "SNAP" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "TICK" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "TICKF" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "UPEC" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "UTXO" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "UTXOS" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type EraRule "UTXOW" ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type Tx ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type Value ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type TxOut ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type Crypto ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type TxSeq ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type PreviousEra ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationContext ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TxBody ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type Script ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type AuxiliaryData ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type PParams ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type PParamsDelta ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type Witnesses ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type AdditionalGenesisConfig ( BabbageEra c)
Instance details

Defined in Cardano.Ledger.Babbage

type TranslationError ( BabbageEra c) ProposedPPUpdates
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) PPUPState
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) UTxO
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) UTxOState
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) LedgerState
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) EpochState
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) ShelleyGenesis
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) NewEpochState
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) Tx
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError ( BabbageEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

type TranslationError ( BabbageEra c) ( PParams' f)
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TxMeasure ( ShelleyBlock p ( BabbageEra c)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool

data ShelleyEra c Source #

Instances

Instances details
Crypto c => Era ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

Associated Types

type Crypto ( ShelleyEra c) Source #

( Crypto c, UsesTxBody ( ShelleyEra c)) => ValidateScript ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

Crypto c => SupportsSegWit ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

Associated Types

type TxSeq ( ShelleyEra c) = (r :: Type ) Source #

( Crypto crypto, DSignable crypto ( Hash crypto EraIndependentTxBody )) => ShelleyBasedEra ( ShelleyEra crypto)
Instance details

Defined in Cardano.Ledger.Shelley.API

( Crypto c, Default ( State ( EraRule "PPUP" ( ShelleyEra c)))) => CanStartFromGenesis ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.API.Genesis

Crypto c => CLI ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.API.Wallet

ShelleyEraCrypto c => ApplyTx ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.API.Mempool

ShelleyEraCrypto crypto => ApplyBlock ( ShelleyEra crypto)
Instance details

Defined in Cardano.Ledger.Shelley.API.Validation

Crypto c => UsesValue ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

Crypto c => UsesTxOut ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

Crypto c => UsesPParams ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

Crypto crypto => GetLedgerView ( ShelleyEra crypto)
Instance details

Defined in Cardano.Protocol.TPraos.API

( PraosCrypto c, DSignable c ( Hash c EraIndependentTxBody )) => ShelleyBasedEra ( ShelleyEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

Crypto c => ValidateAuxiliaryData ( ShelleyEra c) c
Instance details

Defined in Cardano.Ledger.Shelley

( PraosCrypto c, Signable ( DSIGN c) ( Hash ( HASH c) EraIndependentTxBody )) => ShelleyCompatible ( TPraos c) ( ShelleyEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.HFEras

ShelleyCompatible p ( ShelleyEra c) => TxLimits ( ShelleyBlock p ( ShelleyEra c)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool

type EraRule "BBODY" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "DELEG" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "DELEGS" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "DELPL" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "EPOCH" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "LEDGER" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "LEDGERS" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "MIR" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "NEWEPOCH" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "NEWPP" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "POOL" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "POOLREAP" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "PPUP" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "RUPD" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "SNAP" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "TICK" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "TICKF" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "UPEC" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "UTXO" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type EraRule "UTXOW" ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.Rules.EraMapping

type Tx ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type Value ( ShelleyEra _c)
Instance details

Defined in Cardano.Ledger.Shelley

type TxOut ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type Crypto ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type TxSeq ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type TranslationContext ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type TxBody ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type Script ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type AuxiliaryData ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type PParams ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type PParamsDelta ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type Witnesses ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley

type AdditionalGenesisConfig ( ShelleyEra c)
Instance details

Defined in Cardano.Ledger.Shelley.API.Genesis

type TxMeasure ( ShelleyBlock p ( ShelleyEra c)) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Ledger.Mempool

Eras instantiated with standard crypto

type StandardAllegra = AllegraEra StandardCrypto Source #

The Allegra era with standard crypto

type StandardAlonzo = AlonzoEra StandardCrypto Source #

The Alonzo era with standard crypto

type StandardBabbage = BabbageEra StandardCrypto Source #

The Babbage era with standard crypto

type StandardMary = MaryEra StandardCrypto Source #

The Mary era with standard crypto

type StandardShelley = ShelleyEra StandardCrypto Source #

The Shelley era with standard crypto

Shelley-based era

class ( ShelleyBasedEra era, GetLedgerView era, State ( EraRule "PPUP" era) ~ PPUPState era, Default ( State ( EraRule "PPUP" era)), HasField "_maxBBSize" ( PParams era) Natural , HasField "_maxBHSize" ( PParams era) Natural , HasField "_maxTxSize" ( PParams era) Natural , HasField "_a0" ( PParams era) NonNegativeInterval , HasField "_nOpt" ( PParams era) Natural , HasField "_rho" ( PParams era) UnitInterval , HasField "_tau" ( PParams era) UnitInterval , ValidateScript era, FromCBOR ( PParams era), ToCBOR ( PParams era), HasField "_protocolVersion" ( PParamsDelta era) ( StrictMaybe ProtVer ), FromCBOR ( PParamsDelta era), AdditionalGenesisConfig era ~ TranslationContext era, ToCBORGroup ( TxSeq era), NoThunks ( TranslationContext era), FromCBOR ( Annotator ( Witnesses era)), ToCBOR ( Witnesses era), Eq ( TxSeq era), Show ( TxSeq era), FromCBOR ( Annotator ( TxSeq era))) => ShelleyBasedEra era where Source #

The ledger already defines ShelleyBasedEra as the top-level constraint on an era, however, consensus often needs some more functionality than the ledger currently provides.

Either the functionality shouldn't or can't live in the ledger, in which case it can be part and remain part of ShelleyBasedEra . Or, the functionality should live in the ledger, but hasn't yet been added to the ledger, or it hasn't yet been propagated to this repository, in which case it can be added to this class until that is the case.

By having the same name as the class defined in ledger, we can, if this class becomes redundant, switch to the ledger-defined one without having to update all the code using it. We can just export the right one from this module.

TODO Currently we include some constraints on the update state which are needed to determine the hard fork point. In the future this should be replaced with an appropriate API - see https://github.com/input-output-hk/ouroboros-network/issues/2890

Instances

Instances details
( PraosCrypto c, DSignable c ( Hash c EraIndependentTxBody )) => ShelleyBasedEra ( AlonzoEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

PraosCrypto c => ShelleyBasedEra ( BabbageEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

( PraosCrypto c, DSignable c ( Hash c EraIndependentTxBody )) => ShelleyBasedEra ( ShelleyEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

( PraosCrypto c, DSignable c ( Hash c EraIndependentTxBody )) => ShelleyBasedEra ( AllegraEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

( PraosCrypto c, DSignable c ( Hash c EraIndependentTxBody )) => ShelleyBasedEra ( MaryEra c) Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

newtype WrapTx era Source #

Wrapper for partially applying the Tx type family

For generality, Consensus uses that type family as eg the index of TranslateEra . We thus need to partially apply it.

cardano-ledger-specs also declares such a newtype, but currently it's only defined in the Alonzo translation module, which seems somewhat inappropriate to use for previous eras. Also, we use a Wrap prefix in Consensus. Hence this minor mediating definition. TODO I'm not even fully persuading myself with this justification.

Constructors

WrapTx

Fields

Instances

Instances details
ShelleyBasedEra ( AlonzoEra c) => TranslateEra ( AlonzoEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

ShelleyBasedEra ( BabbageEra c) => TranslateEra ( BabbageEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

ShelleyBasedEra ( AllegraEra c) => TranslateEra ( AllegraEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

ShelleyBasedEra ( MaryEra c) => TranslateEra ( MaryEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

type TranslationError ( AlonzoEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

type TranslationError ( BabbageEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

type TranslationError ( AllegraEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

type TranslationError ( MaryEra c) WrapTx Source #
Instance details

Defined in Ouroboros.Consensus.Shelley.Eras

Type synonyms for convenience

type EraCrypto era = Crypto era Source #

The Crypto type family conflicts with the Crypto class. To avoid having to import one or both of them qualified, define EraCrypto as an alias of the former: /return the crypto used by this era/.

Re-exports

Exceptions