ouroboros-consensus-byron-0.1.0.0: Byron ledger integration in the Ouroboros consensus layer
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Byron.Node

Synopsis

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

Instances details
Eq PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

Show PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

Generic PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

Associated Types

type Rep PBftSignatureThresholdTypeType Source #

NoThunks PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

Methods

noThunks ∷ Context → PBftSignatureThresholdIO (Maybe ThunkInfo) #

wNoThunks ∷ Context → PBftSignatureThresholdIO (Maybe ThunkInfo) #

showTypeOfProxy PBftSignatureThresholdString #

type Rep PBftSignatureThreshold 
Instance details

Defined in Ouroboros.Consensus.Protocol.PBFT

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

mkByronConfig ∷ Config → ProtocolVersion → SoftwareVersion → BlockConfig ByronBlock Source #

Secrets

data ByronLeaderCredentials Source #

Credentials needed to produce blocks in the Byron era.

Constructors

ByronLeaderCredentials 

Fields

  • blcSignKey ∷ SigningKey
     
  • blcDlgCert ∷ Certificate
     
  • blcCoreNodeIdCoreNodeId

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

  • blcLabelText

    Identifier for this set of credentials.

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

mkByronLeaderCredentials ∷ Config → SigningKey → Certificate → TextEither 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.

Orphan instances