Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
newtype
TxId
crypto =
TxId
{
- _unTxId :: SafeHash crypto EraIndependentTxBody
- data TxIn crypto = TxIn !( TxId crypto) ! TxIx
- mkTxInPartial :: HasCallStack => TxId crypto -> Integer -> TxIn crypto
- data TxIx
- txid :: forall era c. ( HashAlgorithm ( HASH c), HashAnnotated ( TxBody era) EraIndependentTxBody c) => TxBody era -> TxId c
Documentation
A unique ID of a transaction, which is computable from the transaction.
TxId | |
|
Instances
Eq ( TxId crypto) Source # | |
Ord ( TxId crypto) Source # | |
Defined in Cardano.Ledger.TxIn compare :: TxId crypto -> TxId crypto -> Ordering Source # (<) :: TxId crypto -> TxId crypto -> Bool Source # (<=) :: TxId crypto -> TxId crypto -> Bool Source # (>) :: TxId crypto -> TxId crypto -> Bool Source # (>=) :: TxId crypto -> TxId crypto -> Bool Source # |
|
Show ( TxId crypto) Source # | |
Generic ( TxId crypto) Source # | |
Crypto crypto => NFData ( TxId crypto) Source # | |
Defined in Cardano.Ledger.TxIn |
|
Crypto crypto => ToCBOR ( TxId crypto) Source # | |
Crypto crypto => FromCBOR ( TxId crypto) Source # | |
HeapWords ( TxId crypto) Source # | |
NoThunks ( TxId crypto) Source # | |
type Rep ( TxId crypto) Source # | |
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
))))
|
The input of a UTxO.
Instances
Eq ( TxIn crypto) Source # | |
Ord ( TxIn crypto) Source # | |
Defined in Cardano.Ledger.TxIn compare :: TxIn crypto -> TxIn crypto -> Ordering Source # (<) :: TxIn crypto -> TxIn crypto -> Bool Source # (<=) :: TxIn crypto -> TxIn crypto -> Bool Source # (>) :: TxIn crypto -> TxIn crypto -> Bool Source # (>=) :: TxIn crypto -> TxIn crypto -> Bool Source # |
|
Show ( TxIn crypto) Source # | |
Generic ( TxIn crypto) Source # | |
Crypto crypto => NFData ( TxIn crypto) Source # | |
Defined in Cardano.Ledger.TxIn |
|
Crypto crypto => ToCBOR ( TxIn crypto) Source # | |
Crypto crypto => FromCBOR ( TxIn crypto) Source # | |
Crypto crypto => HeapWords ( TxIn crypto) Source # | |
NoThunks ( TxIn crypto) Source # | |
type Rep ( TxIn crypto) Source # | |
Defined in Cardano.Ledger.TxIn
type
Rep
(
TxIn
crypto) =
D1
('
MetaData
"TxIn" "Cardano.Ledger.TxIn" "cardano-ledger-core-0.1.0.0-3EJt5rxsPizAWHDEqGPh9V" '
False
) (
C1
('
MetaCons
"TxIn" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
SourceStrict
'
DecidedStrict
) (
Rec0
(
TxId
crypto))
:*:
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
SourceUnpack
'
SourceStrict
'
DecidedStrict
) (
Rec0
TxIx
)))
|
mkTxInPartial :: HasCallStack => TxId crypto -> Integer -> TxIn crypto Source #
Transaction index.
Instances
Bounded TxIx Source # | |
Enum TxIx Source # | |
Eq TxIx Source # | |
Ord TxIx Source # | |
Defined in Cardano.Ledger.BaseTypes |
|
Show TxIx Source # | |
NFData TxIx Source # | |
Defined in Cardano.Ledger.BaseTypes |
|
ToCBOR TxIx Source # | |
FromCBOR TxIx Source # | |
NoThunks TxIx Source # | |
txid :: forall era c. ( HashAlgorithm ( HASH c), HashAnnotated ( TxBody era) EraIndependentTxBody c) => TxBody era -> TxId c Source #
Compute the id of a transaction.