cardano-ledger-alonzo-0.1.0.0: Cardano ledger introducing Plutus Core
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Alonzo.Data

Synopsis

Documentation

data Data era where Source #

Bundled Patterns

pattern Data :: Data -> Data era

Instances

Instances details
c ~ Crypto era => HasField "txdatahash" ( ValidatedTx era) ( Map ( DataHash c) ( Data era)) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Eq ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Ord ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Show ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Generic ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Associated Types

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

NFData ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Methods

rnf :: Data era -> () Source #

Typeable era => ToCBOR ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Typeable era => FromCBOR ( Annotator ( Data era)) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

SafeToHash ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

NoThunks ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Crypto era ~ c => HashAnnotated ( Data era) EraIndependentData c Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

type Rep ( Data era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

type Rep ( Data era) = D1 (' MetaData "Data" "Cardano.Ledger.Alonzo.Data" "cardano-ledger-alonzo-0.1.0.0-xW3meaGVQP43dxJ76zbGD" ' True ) ( C1 (' MetaCons "DataConstr" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( MemoBytes Data ))))

data BinaryData era Source #

Inlined data must be stored in the most compact form because it contributes to the memory overhead of the ledger state. Constructor is intentionally not exported, in order to prevent invalid creation of data from arbitrary binary data. Use makeBinaryData for smart construction.

Instances

Instances details
Eq ( BinaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Ord ( BinaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Show ( BinaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Typeable era => ToCBOR ( BinaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Typeable era => FromCBOR ( BinaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

SafeToHash ( BinaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Crypto era ~ c => HashAnnotated ( BinaryData era) EraIndependentData c Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

binaryDataToData :: BinaryData era -> Data era Source #

It is safe to convert BinaryData to Data because the only way to construct BinaryData is thorugh smart constructor makeBinaryData that takes care of verification.

data Datum era Source #

Datum can be described by a either a data hash or binary data, but not both. It can also be neither one of them.

datumDataHash :: Era era => Datum era -> StrictMaybe ( DataHash ( Crypto era)) Source #

Get the Hash of the datum.

data AuxiliaryData era where Source #

Instances

Instances details
Eq ( AuxiliaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Show ( Script era) => Show ( AuxiliaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

NFData ( Script era) => NFData ( AuxiliaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Typeable era => ToCBOR ( AuxiliaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

( Era era, Ord ( Script era), FromCBOR ( Annotator ( Script era)), Script era ~ Script era) => FromCBOR ( Annotator ( AuxiliaryData era)) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

SafeToHash ( AuxiliaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

NoThunks ( AuxiliaryData era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

Crypto era ~ c => HashAnnotated ( AuxiliaryData era) EraIndependentAuxiliaryData c Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Data

newtype AuxiliaryDataHash crypto Source #

Instances

Instances details
Crypto era ~ crypto => HasField "adHash" ( TxBody era) ( StrictMaybe ( AuxiliaryDataHash crypto))
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Crypto era ~ crypto => HasField "adHash" ( TxBody era) ( StrictMaybe ( AuxiliaryDataHash crypto))
Instance details

Defined in Cardano.Ledger.ShelleyMA.TxBody

c ~ Crypto era => HasField "adHash" ( TxBody era) ( StrictMaybe ( AuxiliaryDataHash c)) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Eq ( AuxiliaryDataHash crypto)
Instance details

Defined in Cardano.Ledger.AuxiliaryData

Ord ( AuxiliaryDataHash crypto)
Instance details

Defined in Cardano.Ledger.AuxiliaryData

Show ( AuxiliaryDataHash crypto)
Instance details

Defined in Cardano.Ledger.AuxiliaryData

NFData ( AuxiliaryDataHash crypto)
Instance details

Defined in Cardano.Ledger.AuxiliaryData

Crypto crypto => ToCBOR ( AuxiliaryDataHash crypto)
Instance details

Defined in Cardano.Ledger.AuxiliaryData

Crypto crypto => FromCBOR ( AuxiliaryDataHash crypto)
Instance details

Defined in Cardano.Ledger.AuxiliaryData

NoThunks ( AuxiliaryDataHash crypto)
Instance details

Defined in Cardano.Ledger.AuxiliaryData

Orphan instances