Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Byron.Node
Synopsis
- newtype PBftSignatureThreshold = PBftSignatureThreshold {}
- blockForgingByron ∷ Monad m ⇒ ProtocolParamsByron → [BlockForging m ByronBlock]
- byronBlockForging ∷ 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 ∷ Monad m ⇒ ProtocolParamsByron → [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