Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Test the Praos chain selection rule (with explicit leader schedule)
Synopsis
- data PraosCryptoUnused
- type SimplePraosRuleBlock c = SimpleBlock c SimplePraosRuleExt
- newtype SimplePraosRuleExt = SimplePraosRuleExt {}
- type SimplePraosRuleHeader c = SimpleHeader c SimplePraosRuleExt
- forgePraosRuleExt ∷ SimpleCrypto c ⇒ ForgeExt c SimplePraosRuleExt
Documentation
data PraosCryptoUnused Source #
Instances
type SimplePraosRuleBlock c = SimpleBlock c SimplePraosRuleExt Source #
Simple block extended with the fields required for Praos
c
is crypto used for the block itself
With an explicit leader schedule we need no crypto for the consensus protocol.
This is an example of a block which is not an instance of SignedBlock
.
newtype SimplePraosRuleExt Source #
Required extension
The WithLeaderSchedule
doesn't require anything in the block header.
We add the CoreNodeId
just so that we can check that the schedule matches
the chain.
Instances
type SimplePraosRuleHeader c = SimpleHeader c SimplePraosRuleExt Source #
Header for Proas