Smart Contract Repair

Xiao Liang Yu, Omar Al-Bataineh, David Lo, Abhik Roychoudhury
12/12/2019
cs.SEcs.CRcs.PL

Official code: xiaoly8/SCRepair (25 stars, C++, last commit 2022-06-21).

Abstract

Smart contracts are automated or self-enforcing contracts that can be used to exchange assets without having to place trust in third parties. Many commercial transactions use smart contracts due to their potential benefits in terms of secure peer-to-peer transactions independent of external parties.

Show full abstract

Experience shows that many commonly used smart contracts are vulnerable to serious malicious attacks which may enable attackers to steal valuable assets of involving parties. There is therefore a need to apply analysis and automated repair techniques to detect and repair bugs in smart contracts before being deployed. In this work, we present the first general-purpose automated smart contract repair approach that is also gas-aware. Our repair method is search-based and searches among mutations of the buggy contract. Our method also considers the gas usage of the candidate patches by leveraging our novel notion of gas dominance relationship. We have made our smart contract repair tool SCRepair available open-source, for investigation by the wider community.

View on arXivView PDF

Code Implementations(1)

xiaoly8/SCRepairOfficial100%
257C++, TypeScriptDec 5, 20194 years ago

Similar Papers

Cite this paper

@article{yu2019smart,
  title  = {Smart Contract Repair},
  author = {Xiao Liang Yu and Omar Al-Bataineh and David Lo and Abhik Roychoudhury},
  year   = {2019},
  eprint = {1912.05823},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.05823}
}

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/1912.05823.svg)](https://codeofpaper.com/paper/1912.05823)

Discussion