Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SignedSimplePraos c c' = SignedSimplePraos {}
- type SimplePraosBlock c c' = SimpleBlock c (SimplePraosExt c c')
- newtype SimplePraosExt c c' = SimplePraosExt {
- simplePraosExt ∷ PraosFields c' (SignedSimplePraos c c')
- type SimplePraosHeader c c' = SimpleHeader c (SimplePraosExt c c')
- forgePraosExt ∷ ∀ c c'. (SimpleCrypto c, PraosCrypto c', Signable (PraosKES c') (SignedSimplePraos c c')) ⇒ HotKey c' → ForgeExt c (SimplePraosExt c c')
Documentation
data SignedSimplePraos c c' Source #
Part of the block that gets signed
TODO: Right now we sign all of the extra Praos fields. This may or may not be needed. https://github.com/IntersectMBO/cardano-ledger/issues/530 Of course, this Praos is merely a proof of concept so it doesn't really matter either way; we include them here primarily to show that we can.
SignedSimplePraos | |
|
Instances
(SimpleCrypto c, PraosCrypto c') ⇒ ToCBOR (SignedSimplePraos c c') Source # | |
Defined in Ouroboros.Consensus.Mock.Ledger.Block.Praos toCBOR ∷ SignedSimplePraos c c' → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (SignedSimplePraos c c') → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [SignedSimplePraos c c'] → Size Source # | |
(SimpleCrypto c, PraosCrypto c') ⇒ SignableRepresentation (SignedSimplePraos c c') Source # | |
type SimplePraosBlock c c' = SimpleBlock c (SimplePraosExt c c') Source #
Simple block extended with the fields required for Praos
c
is crypto used for the block itself
c'
is crypto used for the consensus protocol
newtype SimplePraosExt c c' Source #
Block extension required for Praos
SimplePraosExt | |
|
Instances
type SimplePraosHeader c c' = SimpleHeader c (SimplePraosExt c c') Source #
Header for Proas
forgePraosExt ∷ ∀ c c'. (SimpleCrypto c, PraosCrypto c', Signable (PraosKES c') (SignedSimplePraos c c')) ⇒ HotKey c' → ForgeExt c (SimplePraosExt c c') Source #