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

Cardano.Ledger.Alonzo.Rules.Utxow

Synopsis

Documentation

data UtxowPredicateFail era Source #

The Predicate failure type in the Alonzo Era. It embeds the Predicate failure type of the Shelley Era, as they share some failure modes.

Constructors

WrappedShelleyEraFailure !( UtxowPredicateFailure era)
MissingRedeemers ![( ScriptPurpose ( Crypto era), ScriptHash ( Crypto era))]

List of scripts for which no redeemers were supplied

MissingRequiredDatums

Fields

NonOutputSupplimentaryDatums

Fields

PPViewHashesDontMatch

Fields

MissingRequiredSigners ( Set ( KeyHash ' Witness ( Crypto era)))

Set of witnesses which were needed and not supplied

UnspendableUTxONoDatumHash ( Set ( TxIn ( Crypto era)))

Set of transaction inputs that are TwoPhase scripts, and should have a DataHash but don't

ExtraRedeemers ![ RdmrPtr ]

List of redeemers not needed

Instances

Instances details
( Era era, Eq ( PredicateFailure ( EraRule "UTXO" era)), Eq ( Script era)) => Eq ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

( Era era, Show ( PredicateFailure ( EraRule "UTXO" era)), Show ( Script era)) => Show ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

Generic ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

( Era era, ToCBOR ( PredicateFailure ( EraRule "UTXO" era)), Typeable ( AuxiliaryData era), Typeable ( Script era), ToCBOR ( Script era)) => ToCBOR ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

( Era era, FromCBOR ( PredicateFailure ( EraRule "UTXO" era)), Typeable ( Script era), Typeable ( AuxiliaryData era)) => FromCBOR ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

( Era era, NoThunks ( Script era), NoThunks ( PredicateFailure ( EraRule "UTXO" era))) => NoThunks ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

Inject ( UtxowPredicateFailure era) ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

Inject ( UtxowPredicateFail era) ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

type Rep ( UtxowPredicateFail era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

type Rep ( UtxowPredicateFail era) = D1 (' MetaData "UtxowPredicateFail" "Cardano.Ledger.Alonzo.Rules.Utxow" "cardano-ledger-alonzo-0.1.0.0-xW3meaGVQP43dxJ76zbGD" ' False ) ((( C1 (' MetaCons "WrappedShelleyEraFailure" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( UtxowPredicateFailure era))) :+: C1 (' MetaCons "MissingRedeemers" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 [( ScriptPurpose ( Crypto era), ScriptHash ( Crypto era))]))) :+: ( C1 (' MetaCons "MissingRequiredDatums" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Set ( DataHash ( Crypto era)))) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Set ( DataHash ( Crypto era))))) :+: C1 (' MetaCons "NonOutputSupplimentaryDatums" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Set ( DataHash ( Crypto era)))) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Set ( DataHash ( Crypto era))))))) :+: (( C1 (' MetaCons "PPViewHashesDontMatch" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( StrictMaybe ( ScriptIntegrityHash ( Crypto era)))) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( StrictMaybe ( ScriptIntegrityHash ( Crypto era))))) :+: C1 (' MetaCons "MissingRequiredSigners" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Set ( KeyHash ' Witness ( Crypto era)))))) :+: ( C1 (' MetaCons "UnspendableUTxONoDatumHash" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Set ( TxIn ( Crypto era))))) :+: C1 (' MetaCons "ExtraRedeemers" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 [ RdmrPtr ])))))

langsUsed :: forall era. ( Script era ~ Script era, ValidateScript era) => Map ( ScriptHash ( Crypto era)) ( Script era) -> Set Language Source #

given the "txscripts" field of the Witnesses, compute the set of languages used in a transaction

witsVKeyNeeded :: forall era tx. ( Era era, HasField "body" tx ( TxBody era), HasField "wdrls" ( TxBody era) ( Wdrl ( Crypto era)), HasField "certs" ( TxBody era) ( StrictSeq ( DCert ( Crypto era))), HasField "inputs" ( TxBody era) ( Set ( TxIn ( Crypto era))), HasField "collateral" ( TxBody era) ( Set ( TxIn ( Crypto era))), HasField "update" ( TxBody era) ( StrictMaybe ( Update era))) => UTxO era -> tx -> GenDelegs ( Crypto era) -> WitHashes ( Crypto era) Source #

Collect the set of hashes of keys that needs to sign a given transaction. This set consists of the txin owners, certificate authors, and withdrawal reward accounts.

Compared to pre-Alonzo eras, we additionally gather the certificates required to authenticate collateral witnesses.

extSymmetricDifference :: Ord k => [a] -> (a -> k) -> [b] -> (b -> k) -> ([a], [b]) Source #

data AlonzoUTXOW era Source #

Instances

Instances details
( ValidateScript era, ValidateAuxiliaryData era ( Crypto era), ExtendedUTxO era, Signable ( DSIGN ( Crypto era)) ( Hash ( HASH ( Crypto era)) EraIndependentTxBody ), Tx era ~ ValidatedTx era, Witnesses era ~ TxWitness era, ConcreteAlonzo era, Embed ( EraRule "UTXO" era) ( AlonzoUTXOW era), Environment ( EraRule "UTXO" era) ~ UtxoEnv era, State ( EraRule "UTXO" era) ~ UTxOState era, Signal ( EraRule "UTXO" era) ~ ValidatedTx era) => STS ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

( Era era, STS ( AlonzoUTXO era), PredicateFailure ( EraRule "UTXO" era) ~ UtxoPredicateFailure era, Event ( EraRule "UTXO" era) ~ UtxoEvent era, BaseM ( AlonzoUTXOW era) ~ ShelleyBase , PredicateFailure ( AlonzoUTXOW era) ~ UtxowPredicateFail era, Event ( AlonzoUTXOW era) ~ AlonzoEvent era) => Embed ( AlonzoUTXO era) ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

( Era era, STS ( AlonzoUTXOW era), PredicateFailure ( EraRule "UTXOW" era) ~ UtxowPredicateFail era, Event ( EraRule "UTXOW" era) ~ AlonzoEvent era) => Embed ( AlonzoUTXOW era) ( AlonzoLEDGER era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Ledger

type State ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

type Event ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

type PredicateFailure ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

type BaseM ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

type Environment ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow

type Signal ( AlonzoUTXOW era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxow