Can We Effectively Use Smart Contracts to Stipulate Time Constraints?

Tobias Eichinger, Marcel Ebermann
7/5/2022
cs.DCeess.SY

Official code: marcelTUB/Execution-Accuracy-Testbed (1 star, Jupyter Notebook, last commit 2022-10-16).

Abstract

Smart contracts provide the means to stipulate rules of interaction between mutually distrustful organizations. They encode contractual agreements on the basis of source code, which else need to be contractualized in natural language.

Show full abstract

While the mediation of contractual agreements via smart contracts is seamless in theory, it requires that the conditions of an interaction are accurately made available in the blockchain. Time is a prominent such condition. In the paper at hand, we empirically measure the consistency of a smart contract to yield equal results on the basis of the time of an interaction and its potentially inaccurate representation in the blockchain. We propose a novel metric called execution accuracy to measure this consistency. We specifically measure the execution accuracy of a time interval-constrained smart contract that executes distinct logic within and without some constraint interval. We run experiments for the local Ganache and Quorum and the public Görli and Rinkeby Ethereum blockchains. Our experiments confirm our intuition that execution accuracy decreases near interval bounds. The novelty of our proposed metric resides in its capacity to quantify this decrease and make distinct blockchains comparable with respect to their capacity to accurately stipulate time contraints.

View on arXivView PDF

Code Implementations(1)

10Jupyter Notebook, JavaScriptJul 4, 20224 years ago

Similar Papers

Cite this paper

@article{eichinger2022effectively,
  title  = {Can We Effectively Use Smart Contracts to Stipulate Time Constraints?},
  author = {Tobias Eichinger and Marcel Ebermann},
  year   = {2022},
  eprint = {2207.02323},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.02323}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.02323.svg)](https://codeofpaper.com/paper/2207.02323)

Discussion