ouroboros-consensus-cardano-0.12.1.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.Byron.Ledger.Conversions

Synopsis

From cardano-ledger-byron to ouroboros-consensus

fromByronBlockCount :: BlockCount -> SecurityParam Source #

fromByronBlockNo :: ChainDifficulty -> BlockNo Source #

fromByronEpochSlots :: EpochSlots -> EpochSize Source #

fromByronSlotNo :: SlotNumber -> SlotNo Source #

From ouroboros-consensus to cardano-ledger-byron

toByronBlockCount :: SecurityParam -> BlockCount Source #

toByronSlotNo :: SlotNo -> SlotNumber Source #

Extract info from the genesis config

genesisNumCoreNodes :: Config -> NumCoreNodes Source #

genesisSecurityParam :: Config -> SecurityParam Source #