Skip to content

[Dijkstra] UTXO: Check that tx inputs exist both in the original utxo and the evolving utxo #1031

@carlostome

Description

@carlostome

The CIP specifies that:

All inputs of all transactions in a single batch must be contained in the UTxO set before any of the
batch transactions are applied. This ensures that operation of scripts is not disrupted, for example, by
temporarily duplicating thread tokens, or falsifying access to assets via flash loans.
In the future, this may be up for reconsideration.

The check in UTXO:

∙ SpendInputsOf tx ⊆ dom (UTxOOf Γ) -- (1)

alone addresses this but is insufficient. A previously applied (sub)tx might have spent the input.
It is necessary to check that the input to be spent is part of the evolving UTxO.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions