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

Ouroboros.Consensus.Byron.Node

Synopsis

Documentation

newtype PBftSignatureThreshold #

Instances

Instances details
Generic PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

Associated Types

type Rep PBftSignatureThreshold :: Type -> Type Source #

Show PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

Eq PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

NoThunks PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

Methods

noThunks :: Context -> PBftSignatureThreshold -> IO (Maybe ThunkInfo)

wNoThunks :: Context -> PBftSignatureThreshold -> IO (Maybe ThunkInfo)

showTypeOf :: Proxy PBftSignatureThreshold -> String

type Rep PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

type Rep PBftSignatureThreshold = D1 ('MetaData "PBftSignatureThreshold" "Ouroboros.Consensus.Protocol.PBFT" "ouroboros-consensus-0.14.0.0-121Znn1OCbJFCod8haNyF" 'True) (C1 ('MetaCons "PBftSignatureThreshold" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPBftSignatureThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

Secrets

data ByronLeaderCredentials Source #

Credentials needed to produce blocks in the Byron era.

Constructors

ByronLeaderCredentials 

Fields

  • blcSignKey :: SigningKey
     
  • blcDlgCert :: Certificate
     
  • blcCoreNodeId :: CoreNodeId

    Only core nodes can produce blocks. The CoreNodeId is used to determine the order (round-robin) in which core nodes produce blocks.

  • blcLabel :: Text

    Identifier for this set of credentials.

    Useful when the node is running with multiple sets of credentials.

mkByronLeaderCredentials :: Config -> SigningKey -> Certificate -> Text -> Either ByronLeaderCredentialsError ByronLeaderCredentials Source #

Make the ByronLeaderCredentials, with a couple sanity checks:

  • That the block signing key and the delegation certificate match.
  • That the delegation certificate does correspond to one of the genesis keys from the genesis file.

ProtocolInfo

data family ProtocolParams blk #

Instances

Instances details
data ProtocolParams ByronBlock Source #

Parameters needed to run Byron

Instance details

Defined in Ouroboros.Consensus.Byron.Node

data ProtocolParams (CardanoBlock c) Source #

Parameters needed to run Cardano.

Instance details

Defined in Ouroboros.Consensus.Cardano.Node

data ProtocolParams (ShelleyBlock (Praos c) (BabbageEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Node.Praos

data ProtocolParams (ShelleyBlock (Praos c) (ConwayEra c)) Source # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Node.Praos

data ProtocolParams (ShelleyBlock (TPraos c) (AllegraEra c)) Source #

Parameters needed to run Allegra

Instance details

Defined in Ouroboros.Consensus.Shelley.Node.TPraos

data ProtocolParams (ShelleyBlock (TPraos c) (AlonzoEra c)) Source #

Parameters needed to run Alonzo

Instance details

Defined in Ouroboros.Consensus.Shelley.Node.TPraos

data ProtocolParams (ShelleyBlock (TPraos c) (MaryEra c)) Source #

Parameters needed to run Mary

Instance details

Defined in Ouroboros.Consensus.Shelley.Node.TPraos

data ProtocolParams (ShelleyBlock (TPraos c) (ShelleyEra c)) Source #

Parameters needed to run Shelley

Instance details

Defined in Ouroboros.Consensus.Shelley.Node.TPraos

mkByronConfig :: Config -> ProtocolVersion -> SoftwareVersion -> BlockConfig ByronBlock Source #

protocolClientInfoByron :: EpochSlots -> ProtocolClientInfo ByronBlock Source #

Orphan instances

BlockSupportsMetrics ByronBlock Source # 
Instance details

Methods

isSelfIssued :: BlockConfig ByronBlock -> Header ByronBlock -> WhetherSelfIssued

ConfigSupportsNode ByronBlock Source # 
Instance details

Methods

getSystemStart :: BlockConfig ByronBlock -> SystemStart

getNetworkMagic :: BlockConfig ByronBlock -> NetworkMagic

NodeInitStorage ByronBlock Source # 
Instance details

RunNode ByronBlock Source # 
Instance details