cardano-ledger-shelley-0.1.0.0
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Shelley.BlockChain

Synopsis

Documentation

data TxSeq era Source #

Bundled Patterns

pattern TxSeq :: forall era. ( Era era, SafeToHash ( Witnesses era)) => StrictSeq ( Tx era) -> TxSeq era

Constuct a TxSeq (with all it bytes) from just Core.Tx's

Instances

Instances details
Eq ( Tx era) => Eq ( TxSeq era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.BlockChain

Show ( Tx era) => Show ( TxSeq era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.BlockChain

Generic ( TxSeq era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.BlockChain

Associated Types

type Rep ( TxSeq era) :: Type -> Type Source #

( BlockAnn era, Typeable era) => FromCBOR ( Annotator ( TxSeq era)) Source #
Instance details

Defined in Cardano.Ledger.Shelley.BlockChain

Era era => ToCBORGroup ( TxSeq era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.BlockChain

( Typeable era, NoThunks ( Tx era)) => NoThunks ( TxSeq era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.BlockChain

type Rep ( TxSeq era) Source #
Instance details

Defined in Cardano.Ledger.Shelley.BlockChain

constructMetadata :: forall era. Int -> Map Int ( Annotator ( AuxiliaryData era)) -> Seq ( Maybe ( Annotator ( AuxiliaryData era))) Source #

Given a size and a mapping from indices to maybe metadata, return a sequence whose size is the size paramater and whose non-Nothing values correspond to the values in the mapping.

bbHash :: forall era. Era era => TxSeq era -> Hash ( Crypto era) EraIndependentBlockBody Source #

Hash a given block body

txSeqDecoder :: forall era. BlockAnn era => Bool -> forall s. Decoder s ( Annotator ( TxSeq era)) Source #

The parts of the Tx in Blocks that have to have FromCBOR(Annotator x) instances. These are exactly the parts that are SafeToHash. | Decode a TxSeq, used in decoding a Block.