cardano-ledger-core-0.1.0.0: Core components of Cardano ledgers from the Shelley release on.
Safe Haskell None
Language Haskell2010

Cardano.Ledger.TxIn

Synopsis

Documentation

newtype TxId crypto Source #

A unique ID of a transaction, which is computable from the transaction.

Instances

Instances details
Eq ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Ord ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Show ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Generic ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep ( TxId crypto) :: Type -> Type Source #

Methods

from :: TxId crypto -> Rep ( TxId crypto) x Source #

to :: Rep ( TxId crypto) x -> TxId crypto Source #

Crypto crypto => NFData ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnf :: TxId crypto -> () Source #

Crypto crypto => ToCBOR ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Crypto crypto => FromCBOR ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

HeapWords ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

NoThunks ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

type Rep ( TxId crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

type Rep ( TxId crypto) = D1 (' MetaData "TxId" "Cardano.Ledger.TxIn" "cardano-ledger-core-0.1.0.0-3EJt5rxsPizAWHDEqGPh9V" ' True ) ( C1 (' MetaCons "TxId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "_unTxId") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( SafeHash crypto EraIndependentTxBody ))))

data TxIn crypto Source #

The input of a UTxO.

Constructors

TxIn !( TxId crypto) ! TxIx

Instances

Instances details
Eq ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Ord ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Show ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Generic ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep ( TxIn crypto) :: Type -> Type Source #

Methods

from :: TxIn crypto -> Rep ( TxIn crypto) x Source #

to :: Rep ( TxIn crypto) x -> TxIn crypto Source #

Crypto crypto => NFData ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnf :: TxIn crypto -> () Source #

Crypto crypto => ToCBOR ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Crypto crypto => FromCBOR ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

Crypto crypto => HeapWords ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

NoThunks ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

type Rep ( TxIn crypto) Source #
Instance details

Defined in Cardano.Ledger.TxIn

mkTxInPartial :: HasCallStack => TxId crypto -> Integer -> TxIn crypto Source #

Construct TxIn while throwing an error for an out of range TxIx . Make sure to use it only for testing.

data TxIx Source #

Transaction index.

Instances

Instances details
Bounded TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

Enum TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

Eq TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

Show TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

NFData TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

FromCBOR TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks TxIx Source #
Instance details

Defined in Cardano.Ledger.BaseTypes

txid :: forall era c. ( HashAlgorithm ( HASH c), HashAnnotated ( TxBody era) EraIndependentTxBody c) => TxBody era -> TxId c Source #

Compute the id of a transaction.