cardano-ledger-byron-0.1.0.0: The blockchain layer of Cardano during the Byron era
Safe Haskell None
Language Haskell2010

Cardano.Chain.UTxO

Synopsis

Documentation

data TxValidationMode Source #

Indicates what sort of transaction validation should be performed.

Constructors

TxValidation

Perform all transaction validations.

TxValidationNoCrypto

Because we've already validated this transaction against some ledger state, we know that cryptographic validation has passed. However, we should still perform all of the other non-cryptographic checks since we're validating against a potentially dfferent ledger state.

NoTxValidation

No validations should be performed as we have already validated this transaction against this very same ledger state.

data UTxOConfiguration Source #

Additional configuration for ledger validation.

Constructors

UTxOConfiguration

Fields

Instances

Instances details
Eq UTxOConfiguration Source #
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

Show UTxOConfiguration Source #
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

Generic UTxOConfiguration Source #
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

ToCBOR UTxOConfiguration Source #
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

FromCBOR UTxOConfiguration Source #
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

NoThunks UTxOConfiguration Source #
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

type Rep UTxOConfiguration Source #
Instance details

Defined in Cardano.Chain.UTxO.UTxOConfiguration

type Rep UTxOConfiguration = D1 (' MetaData "UTxOConfiguration" "Cardano.Chain.UTxO.UTxOConfiguration" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' False ) ( C1 (' MetaCons "UTxOConfiguration" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "tcAssetLockedSrcAddrs") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Set CompactAddress ))))

type TxWitness = Vector TxInWitness Source #

A witness is a proof that a transaction is allowed to spend the funds it spends (by providing signatures, redeeming scripts, etc). A separate proof is provided for each input.

data TxInWitness Source #

A witness for a single input

Constructors

VKWitness ! VerificationKey ! TxSig

VKWitness twKey twSig

RedeemWitness ! RedeemVerificationKey !( RedeemSignature TxSigData )

RedeemWitness twRedeemKey twRedeemSig

Instances

Instances details
Eq TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Show TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Generic TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

NFData TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

ToJSON TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

ToCBOR TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

FromCBOR TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Buildable TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

type Rep TxInWitness Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

newtype TxSigData Source #

Data that is being signed when creating a TxSig

Instances

Instances details
Eq TxSigData Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Show TxSigData Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

Generic TxSigData Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

ToJSON TxSigData Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

ToCBOR TxSigData Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

FromCBOR TxSigData Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

type Rep TxSigData Source #
Instance details

Defined in Cardano.Chain.UTxO.TxWitness

type Rep TxSigData = D1 (' MetaData "TxSigData" "Cardano.Chain.UTxO.TxWitness" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' True ) ( C1 (' MetaCons "TxSigData" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "txSigTxHash") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Hash Tx ))))

data TxProof Source #

Instances

Instances details
Eq TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Show TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Generic TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

NFData TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

ToJSON TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

ToCBOR TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

FromCBOR TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

Buildable TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

NoThunks TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

type Rep TxProof Source #
Instance details

Defined in Cardano.Chain.UTxO.TxProof

mkTxProof :: TxPayload -> TxProof Source #

Construct TxProof which proves given TxPayload

This will construct a Merkle tree, which can be very expensive. Use with care.

type TxPayload = ATxPayload () Source #

Payload of UTxO component which is part of the block body

newtype ATxPayload a Source #

Constructors

ATxPayload

Instances

Instances details
Functor ATxPayload Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

ToCBOR TxPayload Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

FromCBOR TxPayload Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Eq a => Eq ( ATxPayload a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Show a => Show ( ATxPayload a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Generic ( ATxPayload a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

Associated Types

type Rep ( ATxPayload a) :: Type -> Type Source #

NFData a => NFData ( ATxPayload a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

ToJSON a => ToJSON ( ATxPayload a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

FromCBOR ( ATxPayload ByteSpan ) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

type Rep ( ATxPayload a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

type Rep ( ATxPayload a) = D1 (' MetaData "ATxPayload" "Cardano.Chain.UTxO.TxPayload" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' True ) ( C1 (' MetaCons "ATxPayload" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "aUnTxPayload") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 [ ATxAux a])))

type TxAux = ATxAux () Source #

Transaction + auxiliary data

data ATxAux a Source #

Instances

Instances details
Functor ATxAux Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

ToCBOR TxAux Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

FromCBOR TxAux Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Buildable TxAux Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Eq a => Eq ( ATxAux a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Show a => Show ( ATxAux a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Generic ( ATxAux a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Associated Types

type Rep ( ATxAux a) :: Type -> Type Source #

NFData a => NFData ( ATxAux a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Methods

rnf :: ATxAux a -> () Source #

ToJSON a => ToJSON ( ATxAux a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

Decoded ( ATxAux ByteString ) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

FromCBOR ( ATxAux ByteSpan ) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

type Rep ( ATxAux a) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

type BaseType ( ATxAux ByteString ) Source #
Instance details

Defined in Cardano.Chain.UTxO.TxAux

txaF :: Format r ( TxAux -> r) Source #

Specialized formatter for TxAux

data Tx Source #

Transaction

NB: transaction witnesses are stored separately

Constructors

UnsafeTx

Fields

Instances

Instances details
Eq Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Ord Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Show Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Generic Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Associated Types

type Rep Tx :: Type -> Type Source #

NFData Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

rnf :: Tx -> () Source #

ToJSON Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToCBOR Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

FromCBOR Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Buildable Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep Tx Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

txF :: Format r ( Tx -> r) Source #

Specialized formatter for Tx

type TxId = Hash Tx Source #

Represents transaction identifier as Hash of Tx

type TxAttributes = Attributes () Source #

Represents transaction attributes: map from 1-byte integer to arbitrary-type value. To be used for extending transaction with new fields via softfork.

data TxIn Source #

Transaction arbitrary input

Constructors

TxInUtxo TxId Word16

TxId = Which transaction's output is used | Word16 = Index of the output in transaction's outputs

Instances

Instances details
Eq TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Ord TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Show TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Generic TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Associated Types

type Rep TxIn :: Type -> Type Source #

NFData TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToJSON TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToCBOR TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

FromCBOR TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

HeapWords TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Buildable TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep TxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

data TxOut Source #

Transaction output

Instances

Instances details
Eq TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Ord TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Show TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Generic TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

NFData TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToJSON TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToCBOR TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

FromCBOR TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

HeapWords TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

Buildable TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep TxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep TxOut = D1 (' MetaData "TxOut" "Cardano.Chain.UTxO.Tx" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' False ) ( C1 (' MetaCons "TxOut" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "txOutAddress") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Address ) :*: S1 (' MetaSel (' Just "txOutValue") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Lovelace )))

genesisUtxo :: Config -> UTxO Source #

Create initial UTxO from balances defined in the genesis config

data CompactTxIn Source #

A compact in-memory representation for a TxIn .

Convert using toCompactTxIn and fromCompactTxIn .

Instances

Instances details
Eq CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Ord CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Show CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Generic CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

NFData CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

ToCBOR CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

FromCBOR CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

HeapWords CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

NoThunks CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxIn Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

data CompactTxId Source #

A compact in-memory representation for a TxId .

Convert using toCompactTxId and fromCompactTxId .

Compared to a normal TxId , this takes 5 heap words rather than 12.

Instances

Instances details
Eq CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Ord CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Show CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Generic CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

NFData CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

ToCBOR CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

FromCBOR CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

HeapWords CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

NoThunks CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxId Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

data CompactTxOut Source #

A compact in-memory representation for a TxOut .

Convert using toCompactTxOut and fromCompactTxOut .

Instances

Instances details
Eq CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Ord CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Show CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

Generic CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

NFData CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

ToCBOR CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

FromCBOR CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

HeapWords CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

NoThunks CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact

type Rep CompactTxOut Source #
Instance details

Defined in Cardano.Chain.UTxO.Compact