cardano-ledger-alonzo-1.14.0.0: Cardano ledger introducing Plutus Core
Safe HaskellSafe-Inferred
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 ∷ ∀ era. (AlonzoEraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx era) → AlonzoBlockBody era 

Instances

Instances details
Generic (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Associated Types

type Rep (AlonzoBlockBody era) ∷ TypeType #

Methods

fromAlonzoBlockBody era → Rep (AlonzoBlockBody era) x #

toRep (AlonzoBlockBody era) x → AlonzoBlockBody era #

Show (Tx 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 #

(AlonzoEraTx era, DecCBOR (Annotator (TxAuxData era)), DecCBOR (Annotator (TxBody 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

Eq (Tx 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 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.14.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "abbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 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