Termination of Ethereum’s Smart Contracts

Thomas Genet, Thomas Jensen, Justine Sauvage

2020

Abstract

Ethereum is a decentralized blockchain technology equipped with so-called Smart Contracts. A contract is a program whose code is public, which can be triggered by any user, and whose actual execution is performed by miners participating in Ethereum. Miners execute the contract on the Ethereum Virtual Machine (EVM) and apply its effect by adding new blocks to the blockchain. A contract that takes too much time to be processed by the miners of the network may result into delays or a denial of service in the Ethereum system. To prevent this scenario, termination of Ethereum’s Smart Contracts is ensured using a gas mechanism. Roughly, the EVM consumes gas to process each instruction of a contract and the gas provided to run a contract is limited. This technique could make termination of contracts easy to prove but the way the official definition of the EVM specifies gas usage makes the proof of this property non-trivial. EVM implementations and formal analysis techniques of EVM’s Smart Contracts use termination of contracts as an assumption, so having a formal proof of termination of contracts is crucial. This paper presents a mechanized, formal, and general proof of termination of Smart Contracts based on a measure of EVM call stacks.

Download


Paper Citation


in Harvard Style

Genet T., Jensen T. and Sauvage J. (2020). Termination of Ethereum’s Smart Contracts.In Proceedings of the 17th International Joint Conference on e-Business and Telecommunications - Volume 3: SECRYPT, ISBN 978-989-758-446-6, pages 39-51. DOI: 10.5220/0009564100390051


in Bibtex Style

@conference{secrypt20,
author={Thomas Genet and Thomas Jensen and Justine Sauvage},
title={Termination of Ethereum’s Smart Contracts},
booktitle={Proceedings of the 17th International Joint Conference on e-Business and Telecommunications - Volume 3: SECRYPT,},
year={2020},
pages={39-51},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0009564100390051},
isbn={978-989-758-446-6},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 17th International Joint Conference on e-Business and Telecommunications - Volume 3: SECRYPT,
TI - Termination of Ethereum’s Smart Contracts
SN - 978-989-758-446-6
AU - Genet T.
AU - Jensen T.
AU - Sauvage J.
PY - 2020
SP - 39
EP - 51
DO - 10.5220/0009564100390051