cardano-ledger-shelley-1.21.0.0: Shelley Ledger Executable Model
Safe HaskellNone
LanguageHaskell2010

Cardano.Ledger.Shelley.BlockBody.Internal

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

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

Instances details
(EraTx era, DecCBOR (Annotator (TxAuxData era)), DecCBOR (Annotator (TxBody 'TopTx era)), DecCBOR (Annotator (TxWits era))) ⇒ DecCBOR (Annotator (ShelleyBlockBody era)) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Era era ⇒ EncCBORGroup (ShelleyBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

NFData (Tx 'TopTx era) ⇒ NFData (ShelleyBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Methods

rnf ∷ ShelleyBlockBody era → () #

Generic (ShelleyBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Associated Types

type Rep (ShelleyBlockBody era) 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

type Rep (ShelleyBlockBody era) = D1 ('MetaData "ShelleyBlockBody" "Cardano.Ledger.Shelley.BlockBody.Internal" "cardano-ledger-shelley-1.21.0.0-inplace" 'False) (C1 ('MetaCons "ShelleyBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sbbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: S1 ('MetaSel ('Just "sbbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody))) :*: (S1 ('MetaSel ('Just "sbbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "sbbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "sbbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

Methods

from ∷ ShelleyBlockBody era → Rep (ShelleyBlockBody era) x #

to ∷ Rep (ShelleyBlockBody era) x → ShelleyBlockBody era #

Show (Tx 'TopTx era) ⇒ Show (ShelleyBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Eq (Tx 'TopTx era) ⇒ Eq (ShelleyBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Methods

(==) ∷ ShelleyBlockBody era → ShelleyBlockBody era → Bool #

(/=) ∷ ShelleyBlockBody era → ShelleyBlockBody era → Bool #

(Typeable era, NoThunks (Tx 'TopTx era)) ⇒ NoThunks (ShelleyBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

type Rep (ShelleyBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

type Rep (ShelleyBlockBody era) = D1 ('MetaData "ShelleyBlockBody" "Cardano.Ledger.Shelley.BlockBody.Internal" "cardano-ledger-shelley-1.21.0.0-inplace" 'False) (C1 ('MetaCons "ShelleyBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sbbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: S1 ('MetaSel ('Just "sbbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody))) :*: (S1 ('MetaSel ('Just "sbbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "sbbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "sbbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

newtype ShelleyBlockBodyLimits era Source #

Constructors

ShelleyBlockBodyLimits 

Fields

Instances

Instances details
NFData (ShelleyBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Methods

rnf ∷ ShelleyBlockBodyLimits era → () #

Monoid (ShelleyBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Semigroup (ShelleyBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Generic (ShelleyBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Associated Types

type Rep (ShelleyBlockBodyLimits era) 
Instance details

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)))
Show (ShelleyBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

Eq (ShelleyBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

NoThunks (ShelleyBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Shelley.BlockBody.Internal

type Rep (ShelleyBlockBodyLimits era) Source # 
Instance details

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)))

hashShelleySegWits 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.

incrBlocks Source #

Arguments

∷ EraBlockHeader h era 
⇒ Block h era 
→ SlotNo

First Slot

→ UnitInterval

ppDG

→ BlocksMade 
→ BlocksMade 

Orphan instances