Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SignedSimpleBft c c' = SignedSimpleBft {
- signedSimpleBft ∷ SimpleStdHeader c (SimpleBftExt c c')
- type SimpleBftBlock c c' = SimpleBlock c (SimpleBftExt c c')
- newtype SimpleBftExt c c' = SimpleBftExt {
- simpleBftExt ∷ BftFields c' (SignedSimpleBft c c')
- type SimpleBftHeader c c' = SimpleHeader c (SimpleBftExt c c')
- forgeBftExt ∷ ∀ c c'. (SimpleCrypto c, BftCrypto c', Signable (BftDSIGN c') (SignedSimpleBft c c')) ⇒ ForgeExt c (SimpleBftExt c c')
Documentation
data SignedSimpleBft c c' Source #
Part of the block that gets signed
Instances
type SimpleBftBlock c c' = SimpleBlock c (SimpleBftExt c c') Source #
Simple block extended with the fields required for BFT
c
is crypto used for the block itself
c'
is crypto used for the consensus protocol
newtype SimpleBftExt c c' Source #
Block extension required for BFT
SimpleBftExt | |
|
Instances
type SimpleBftHeader c c' = SimpleHeader c (SimpleBftExt c c') Source #
Header for BFT
forgeBftExt ∷ ∀ c c'. (SimpleCrypto c, BftCrypto c', Signable (BftDSIGN c') (SignedSimpleBft c c')) ⇒ ForgeExt c (SimpleBftExt c c') Source #