跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2005.07908 (cs)
[提交于 2020年5月16日 (v1),最后修订于 2021年11月29日 (此版本, v3)]

标题:Why Do Smart Contracts Self-Destruct? Investigating the Selfdestruct Function on Ethereum

作者:Jiachi Chen, Xin Xia, David Lo, John Grundy
查看论文《Why Do Smart Contracts Self-Destruct? Investigating the Selfdestruct Function on Ethereum》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The selfdestruct function is provided by Ethereum smart contracts to destroy a contract on the blockchain system. However, it is a double-edged sword for developers. On the one hand, using selfdestruct function enables developers to remove smart contracts (SC) from Ethereum and transfers Ethers when emergency situations happen, e.g. being attacked. On the other hand, this function can increase the complexity for the development and open an attack vector for attackers. To better understand the reasons why SC developers include or exclude the selfdestruct function in their contracts, we conducted an online survey to collect feedback from them and summarize the key reasons. Their feedback shows that 66.67% of the developers will deploy an updated contract to the Ethereum after destructing the old contract. According to this information, we propose a method to find the self-destructed contracts (also called predecessor contracts) and their updated version (successor contracts) by computing the code similarity. By analyzing the difference between the predecessor contracts and their successor contracts, we found five reasons that led to the death of the contracts; two of them (i.e., Unmatched ERC20 Token and Limits of Permission) might affect the life span of contracts. We developed a tool named LifeScope to detect these problems. LifeScope reports 0 false positives or negatives in detecting Unmatched ERC20 Token. In terms of Limits of Permission, LifeScope achieves 77.89% of F-measure and 0.8673 of AUC in average. According to the feedback of developers who exclude selfdestruct functions, we propose suggestions to help developers use selfdestruct functions in Ethereum smart contracts better.
主题: 软件工程 (cs.SE)
引用方式: arXiv:2005.07908 [cs.SE]
  (或者 arXiv:2005.07908v3 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2005.07908

提交历史

来自:Jiachi Chen
[v1] 2020年5月16日 星期六 08:35:36 UTC
[v2] 2021年7月18日 星期日 04:40:30 UTC
[v3] 2021年11月29日 星期一 02:56:10 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-11
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站