| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Dijkstra.BlockBody
Synopsis
- data DijkstraBlockBody era where
- pattern DijkstraBlockBody ∷ (AlonzoEraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx 'TopTx era) → StrictMaybe PerasCert → DijkstraBlockBody era
- mkBasicBlockBodyDijkstra ∷ (SafeToHash (TxWits era), BlockBody era ~ DijkstraBlockBody era, AlonzoEraTx era) ⇒ BlockBody era
- class EraBlockBody era ⇒ DijkstraEraBlockBody era where
- perasCertBlockBodyL ∷ Lens' (BlockBody era) (StrictMaybe PerasCert)
- data PerasCert = PerasCert
- data PerasKey = PerasKey
- validatePerasCert ∷ Nonce → PerasKey → PerasCert → Bool
Documentation
data DijkstraBlockBody era where Source #
Bundled Patterns
| pattern DijkstraBlockBody ∷ (AlonzoEraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx 'TopTx era) → StrictMaybe PerasCert → DijkstraBlockBody era |
Instances
mkBasicBlockBodyDijkstra ∷ (SafeToHash (TxWits era), BlockBody era ~ DijkstraBlockBody era, AlonzoEraTx era) ⇒ BlockBody era Source #
class EraBlockBody era ⇒ DijkstraEraBlockBody era where Source #
Dijkstra-specific extensions to EraBlockBody
Methods
perasCertBlockBodyL ∷ Lens' (BlockBody era) (StrictMaybe PerasCert) Source #
Lens to access the optional Peras certificate in the block body
Instances
Placeholder for Peras certificates
NOTE: The real type will be brought from 'cardano-base' once it's ready.
Constructors
| PerasCert |
Instances
| DecCBOR PerasCert Source # | |
| EncCBOR PerasCert Source # | |
| NFData PerasCert Source # | |
Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal | |
| Generic PerasCert Source # | |
Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal | |
| Show PerasCert Source # | |
| Eq PerasCert Source # | |
| NoThunks PerasCert Source # | |
| type Rep PerasCert Source # | |
Placeholder for Peras public keys
NOTE: The real type will be brought from 'cardano-base' once it's ready.
Constructors
| PerasKey |