Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Byron.Node
Synopsis
- newtype PBftSignatureThreshold = PBftSignatureThreshold {}
- blockForgingByron ∷ ∀ (m ∷ Type → Type). Monad m ⇒ ProtocolParamsByron → [BlockForging m ByronBlock]
- byronBlockForging ∷ ∀ (m ∷ Type → Type). Monad m ⇒ ByronLeaderCredentials → BlockForging m ByronBlock
- data ByronLeaderCredentials = ByronLeaderCredentials {}
- data ByronLeaderCredentialsError
- mkByronLeaderCredentials ∷ Config → SigningKey → Certificate → Text → Either ByronLeaderCredentialsError ByronLeaderCredentials
- mkPBftCanBeLeader ∷ ByronLeaderCredentials → CanBeLeader (PBft PBftByronCrypto)
- data ProtocolParamsByron = ProtocolParamsByron {}
- defaultPBftSignatureThreshold ∷ PBftSignatureThreshold
- mkByronConfig ∷ Config → ProtocolVersion → SoftwareVersion → BlockConfig ByronBlock
- protocolClientInfoByron ∷ EpochSlots → ProtocolClientInfo ByronBlock
- protocolInfoByron ∷ ProtocolParamsByron → ProtocolInfo ByronBlock
Documentation
newtype PBftSignatureThreshold Source #
Signature threshold. This represents the proportion of blocks in a
pbftSignatureWindow
-sized window which may be signed by any single key.
Constructors
PBftSignatureThreshold | |
Fields |
Instances
blockForgingByron ∷ ∀ (m ∷ Type → Type). Monad m ⇒ ProtocolParamsByron → [BlockForging m ByronBlock] Source #
byronBlockForging ∷ ∀ (m ∷ Type → Type). Monad m ⇒ ByronLeaderCredentials → BlockForging m ByronBlock Source #
Secrets
data ByronLeaderCredentials Source #
Credentials needed to produce blocks in the Byron era.
Constructors
ByronLeaderCredentials | |
Fields
|
Instances
Show ByronLeaderCredentials Source # | |
Defined in Ouroboros.Consensus.Byron.Node Methods showsPrec ∷ Int → ByronLeaderCredentials → ShowS # show ∷ ByronLeaderCredentials → String # showList ∷ [ByronLeaderCredentials] → ShowS # |
data ByronLeaderCredentialsError Source #
Instances
Show ByronLeaderCredentialsError Source # | |
Defined in Ouroboros.Consensus.Byron.Node Methods showsPrec ∷ Int → ByronLeaderCredentialsError → ShowS # | |
Eq ByronLeaderCredentialsError Source # | |
Defined in Ouroboros.Consensus.Byron.Node |
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 ProtocolParamsByron Source #
Parameters needed to run Byron
Orphan instances
BlockSupportsDiffusionPipelining ByronBlock Source # | |||||||||
Associated Types
Methods initialTentativeHeaderState ∷ Proxy ByronBlock → TentativeHeaderState ByronBlock Source # tentativeHeaderView ∷ BlockConfig ByronBlock → Header ByronBlock → TentativeHeaderView ByronBlock Source # applyTentativeHeaderView ∷ Proxy ByronBlock → TentativeHeaderView ByronBlock → TentativeHeaderState ByronBlock → Maybe (TentativeHeaderState ByronBlock) Source # | |||||||||
BlockSupportsMetrics ByronBlock Source # | |||||||||
Methods isSelfIssued ∷ BlockConfig ByronBlock → Header ByronBlock → WhetherSelfIssued Source # | |||||||||
BlockSupportsSanityCheck ByronBlock Source # | |||||||||
ConfigSupportsNode ByronBlock Source # | |||||||||
NodeInitStorage ByronBlock Source # | |||||||||
Methods nodeImmutableDbChunkInfo ∷ StorageConfig ByronBlock → ChunkInfo Source # nodeCheckIntegrity ∷ StorageConfig ByronBlock → ByronBlock → Bool Source # nodeInitChainDB ∷ IOLike m ⇒ StorageConfig ByronBlock → InitChainDB m ByronBlock → m () Source # | |||||||||
RunNode ByronBlock Source # | |||||||||