Runtime Verification of Ethereum Smart Contracts
- 1 September 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 158-163
Abstract
The notion of smart contracts in distributed ledger systems have been hailed as a safe way of enforcing contracts between participating parties. However, unlike legal contracts, which talk about ideal behaviour and consequences of not adhering to such behaviour, smart contracts are by their very nature executable code, giving explicit instructions on how to achieve compliance. Executable specification languages, particularly Turing complete ones, are notoriously known for the difficulty of ensuring correctness, and recent incidents which led to huge financial losses due to bugs in smart contracts, have highlighted this issue. In this paper we show how standard techniques from runtime verification can be used in the domain of smart contracts, including a novel stake-based instrumentation technique which ensures that the violating party provides insurance for correct behaviour. The techniques we describe have been partially implemented in a proof-of-concept tool ContractLarva, which we discuss in this paper.Keywords
This publication has 12 references indexed in Scilit:
- Comprehensive Monitor-Oriented Compensation ProgrammingElectronic Proceedings in Theoretical Computer Science, 2014
- Behavioral interface specification languagesACM Computing Surveys, 2012
- A trace-based model for multiparty contractsThe Journal of Logic and Algebraic Programming, 2012
- Norm Compliance in Business Process ModelingLecture Notes in Computer Science, 2010
- A brief account of runtime verificationThe Journal of Logic and Algebraic Programming, 2009
- Safe Runtime Verification of Real-Time Properties2009
- Automatic Conflict Detection on Contracts2009
- Run-Time Monitoring of Electronic ContractsLecture Notes in Computer Science, 2008
- Specifications are (preferably) executableSoftware Engineering Journal, 1992
- Specifications are not (necessarily) executableSoftware Engineering Journal, 1989