Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
Instances
Generic PBftSignatureThreshold | |
Defined in Ouroboros.Consensus.Protocol.PBFT type Rep PBftSignatureThreshold ∷ Type → Type # | |
Show PBftSignatureThreshold | |
Defined in Ouroboros.Consensus.Protocol.PBFT | |
Eq PBftSignatureThreshold | |
NoThunks PBftSignatureThreshold | |
Defined in Ouroboros.Consensus.Protocol.PBFT | |
type Rep PBftSignatureThreshold | |
Defined in Ouroboros.Consensus.Protocol.PBFT type Rep PBftSignatureThreshold = D1 ('MetaData "PBftSignatureThreshold" "Ouroboros.Consensus.Protocol.PBFT" "ouroboros-consensus-0.21.0.0-inplace" 'True) (C1 ('MetaCons "PBftSignatureThreshold" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPBftSignatureThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) |
blockForgingByron ∷ Monad m ⇒ ProtocolParamsByron → [BlockForging m ByronBlock] Source #
Secrets
data ByronLeaderCredentials Source #
Credentials needed to produce blocks in the Byron era.
ByronLeaderCredentials | |
|
Instances
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