Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype PBftSignatureThreshold = PBftSignatureThreshold { }
- data ProtocolParamsByron = ProtocolParamsByron { }
- byronBlockForging :: Monad m => Overrides ByronBlock -> ByronLeaderCredentials -> BlockForging m ByronBlock
- defaultPBftSignatureThreshold :: PBftSignatureThreshold
- mkByronConfig :: Config -> ProtocolVersion -> SoftwareVersion -> BlockConfig ByronBlock
- protocolClientInfoByron :: EpochSlots -> ProtocolClientInfo ByronBlock
- protocolInfoByron :: forall m. Monad m => ProtocolParamsByron -> ProtocolInfo m ByronBlock
-
data
ByronLeaderCredentials
=
ByronLeaderCredentials
{
- blcSignKey :: SigningKey
- blcDlgCert :: Certificate
- blcCoreNodeId :: CoreNodeId
- blcLabel :: Text
- data ByronLeaderCredentialsError
- mkByronLeaderCredentials :: Config -> SigningKey -> Certificate -> Text -> Either ByronLeaderCredentialsError ByronLeaderCredentials
- mkPBftCanBeLeader :: ByronLeaderCredentials -> CanBeLeader ( PBft PBftByronCrypto )
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
Eq PBftSignatureThreshold | |
Defined in Ouroboros.Consensus.Protocol.PBFT |
|
Show PBftSignatureThreshold | |
Defined in Ouroboros.Consensus.Protocol.PBFT |
|
Generic PBftSignatureThreshold | |
Defined in Ouroboros.Consensus.Protocol.PBFT |
|
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.1.0.1-DT4Cvwf63DZKctsEvaJqCU" '
True
) (
C1
('
MetaCons
"PBftSignatureThreshold" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"getPBftSignatureThreshold") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
Double
)))
|
data ProtocolParamsByron Source #
Parameters needed to run Byron
byronBlockForging :: Monad m => Overrides ByronBlock -> ByronLeaderCredentials -> BlockForging m ByronBlock Source #
protocolInfoByron :: forall m. Monad m => ProtocolParamsByron -> ProtocolInfo m ByronBlock Source #
Secrets
data ByronLeaderCredentials Source #
Credentials needed to produce blocks in the Byron era.
ByronLeaderCredentials | |
|
Instances
data ByronLeaderCredentialsError Source #
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.