| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Shelley.BlockBody.Internal
Contents
Description
Provides BlockBody internals
Warning
This module is considered internal.
The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.
Synopsis
- data ShelleyBlockBody era where
- ShelleyBlockBodyInternal { }
- pattern ShelleyBlockBody ∷ (EraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx 'TopTx era) → ShelleyBlockBody era
- newtype ShelleyBlockBodyLimits era = ShelleyBlockBodyLimits {}
- mkBasicBlockBodyShelley ∷ (EraBlockBody era, SafeToHash (TxWits era), BlockBody era ~ ShelleyBlockBody era) ⇒ BlockBody era
- txSeqBlockBodyShelleyL ∷ (EraBlockBody era, SafeToHash (TxWits era), BlockBody era ~ ShelleyBlockBody era) ⇒ Lens' (BlockBody era) (StrictSeq (Tx 'TopTx era))
- auxDataSeqDecoder ∷ Int → IntMap a → Decoder s (Seq (Maybe a))
- hashShelleySegWits ∷ ByteString → ByteString → ByteString → Hash HASH EraIndependentBlockBody
- slotToNonce ∷ SlotNo → Nonce
- incrBlocks ∷ EraBlockHeader h era ⇒ Block h era → SlotNo → UnitInterval → BlocksMade → BlocksMade
- coreAuxDataBytes ∷ EraTx era ⇒ Tx 'TopTx era → StrictMaybe ByteString
Documentation
data ShelleyBlockBody era Source #
Constructors
| ShelleyBlockBodyInternal | |
Fields
| |
Bundled Patterns
| pattern ShelleyBlockBody ∷ (EraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx 'TopTx era) → ShelleyBlockBody era | Constuct a BlockBody (with all it bytes) from just Tx's |
Instances
newtype ShelleyBlockBodyLimits era Source #
Constructors
| ShelleyBlockBodyLimits | |
Fields | |
Instances
| NFData (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal Methods rnf ∷ ShelleyBlockBodyLimits era → () # | |||||
| Monoid (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal Methods mempty ∷ ShelleyBlockBodyLimits era # mappend ∷ ShelleyBlockBodyLimits era → ShelleyBlockBodyLimits era → ShelleyBlockBodyLimits era # mconcat ∷ [ShelleyBlockBodyLimits era] → ShelleyBlockBodyLimits era # | |||||
| Semigroup (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal Methods (<>) ∷ ShelleyBlockBodyLimits era → ShelleyBlockBodyLimits era → ShelleyBlockBodyLimits era # sconcat ∷ NonEmpty (ShelleyBlockBodyLimits era) → ShelleyBlockBodyLimits era # stimes ∷ Integral b ⇒ b → ShelleyBlockBodyLimits era → ShelleyBlockBodyLimits era # | |||||
| Generic (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal Associated Types
Methods from ∷ ShelleyBlockBodyLimits era → Rep (ShelleyBlockBodyLimits era) x # to ∷ Rep (ShelleyBlockBodyLimits era) x → ShelleyBlockBodyLimits era # | |||||
| Show (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal Methods showsPrec ∷ Int → ShelleyBlockBodyLimits era → ShowS # show ∷ ShelleyBlockBodyLimits era → String # showList ∷ [ShelleyBlockBodyLimits era] → ShowS # | |||||
| Eq (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal Methods (==) ∷ ShelleyBlockBodyLimits era → ShelleyBlockBodyLimits era → Bool # (/=) ∷ ShelleyBlockBodyLimits era → ShelleyBlockBodyLimits era → Bool # | |||||
| NoThunks (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal | |||||
| type Rep (ShelleyBlockBodyLimits era) Source # | |||||
Defined in Cardano.Ledger.Shelley.BlockBody.Internal type Rep (ShelleyBlockBodyLimits era) = D1 ('MetaData "ShelleyBlockBodyLimits" "Cardano.Ledger.Shelley.BlockBody.Internal" "cardano-ledger-shelley-1.21.0.0-inplace" 'True) (C1 ('MetaCons "ShelleyBlockBodyLimits" 'PrefixI 'True) (S1 ('MetaSel ('Just "sbblTxsSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32))) | |||||
mkBasicBlockBodyShelley ∷ (EraBlockBody era, SafeToHash (TxWits era), BlockBody era ~ ShelleyBlockBody era) ⇒ BlockBody era Source #
txSeqBlockBodyShelleyL ∷ (EraBlockBody era, SafeToHash (TxWits era), BlockBody era ~ ShelleyBlockBody era) ⇒ Lens' (BlockBody era) (StrictSeq (Tx 'TopTx era)) Source #
Arguments
| ∷ ByteString | Bytes for transaction bodies |
| → ByteString | Bytes for transaction witnesses |
| → ByteString | Bytes for transaction auxiliary datas |
| → Hash HASH EraIndependentBlockBody |
Compute the Shelley block body hash as a small Merkle tree: the parts of the encoded block body are hashed individually and those hashes are then hashed together.
slotToNonce ∷ SlotNo → Nonce Source #
Arguments
| ∷ EraBlockHeader h era | |
| ⇒ Block h era | |
| → SlotNo | First Slot |
| → UnitInterval | ppDG |
| → BlocksMade | |
| → BlocksMade |
coreAuxDataBytes ∷ EraTx era ⇒ Tx 'TopTx era → StrictMaybe ByteString Source #
Orphan instances
| EraBlockBody ShelleyEra Source # | |||||||||||||
Associated Types
| |||||||||||||