Structured Contracts in the EUTxO Ledger Model

Publication date

2024-05

Authors

Vinogradova, Polina
Melkonian, Orestis
Wadler, Philip
Chakravarty, Manuel
Krijnen, Jacco O.G.ISNI 0000000512545654
Jones, Michael Peyton
Chapman, James
Ferariu, Tudor

Editors

Bernardo, Bruno
Marmsoler, Diego

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

cc_by

Abstract

Blockchain ledgers based on the extended UTxO model support fully expressive smart contracts to specify permissions for performing certain actions, such as spending transaction outputs or minting assets. There have been some attempts to standardize the implementation of stateful programs using this infrastructure, with varying degrees of success. To remedy this, we introduce the framework of structured contracts to formalize what it means for a stateful program to be correctly implemented on the ledger. Using small-step semantics, our approach relates low-level ledger transitions to high-level transitions of the smart contract being specified, thus allowing users to prove that their abstract specification is adequately realized on the blockchain. We argue that the framework is versatile enough to cover a range of examples, in particular proving the equivalence of multiple concrete implementations of the same abstract specification. Building upon prior meta-theoretical results, our results have been mechanized in the Agda proof assistant, paving the way to rigorous verification of smart contracts.

Keywords

Agda, blockchain, EUTxO, formal verification, ledger, small-step semantics, smart contract, specification, transition systems, UTxO, Geography, Planning and Development, Modelling and Simulation

Citation

Vinogradova, P, Melkonian, O, Wadler, P, Chakravarty, M, Krijnen, J, Jones, M P, Chapman, J & Ferariu, T 2024, Structured Contracts in the EUTxO Ledger Model. in B Bernardo & D Marmsoler (eds), 5th International Workshop on Formal Methods for Blockchains, FMBC 2024., 10, OpenAccess Series in Informatics, vol. 118, Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing, 5th International Workshop on Formal Methods for Blockchains, FMBC 2024, Luxembourg City, Luxembourg, 7/04/24. https://doi.org/10.4230/OASIcs.FMBC.2024.10, conference