cardano-ledger-alonzo-1.15.0.0: Cardano ledger introducing Plutus Core
Safe HaskellNone
LanguageHaskell2010

Cardano.Ledger.Alonzo.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 AlonzoBlockBody era Source #

Constructors

AlonzoBlockBodyInternal 

Fields

Bundled Patterns

pattern AlonzoBlockBody ∷ (AlonzoEraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx 'TopTx era) → AlonzoBlockBody era 

Instances

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Generic (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Associated Types

type Rep (AlonzoBlockBody era) 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) = D1 ('MetaData "AlonzoBlockBody" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.15.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "abbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: (S1 ('MetaSel ('Just "abbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody)) :*: S1 ('MetaSel ('Just "abbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "abbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "abbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "abbTxsIsValidBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

Methods

fromAlonzoBlockBody era → Rep (AlonzoBlockBody era) x #

toRep (AlonzoBlockBody era) x → AlonzoBlockBody era #

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

showsPrecIntAlonzoBlockBody era → ShowS #

showAlonzoBlockBody era → String #

showList ∷ [AlonzoBlockBody era] → ShowS #

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

(==)AlonzoBlockBody era → AlonzoBlockBody era → Bool #

(/=)AlonzoBlockBody era → AlonzoBlockBody era → Bool #

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) = D1 ('MetaData "AlonzoBlockBody" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.15.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "abbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: (S1 ('MetaSel ('Just "abbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody)) :*: S1 ('MetaSel ('Just "abbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "abbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "abbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "abbTxsIsValidBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

hashAlonzoSegWits Source #

Arguments

ByteString 
ByteString

Bytes for transaction bodies

ByteString

Bytes for transaction witnesses

ByteString

Bytes for transaction auxiliary datas

Hash HASH EraIndependentBlockBody

Bytes for transaction isValid flags

alignedValidFlagsInt → [Int] → Seq IsValid Source #

Given the number of transactions, and the set of indices for which these transactions do not validate, create an aligned sequence of IsValid flags.

This function operates much as the inverse of nonValidatingIndices.

Orphan instances