arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.13253cs.CR
收藏

现实世界中的智能合约:对外部数据依赖性的统计探索

Smart Contracts in the Real World: A Statistical Exploration of External Data Dependencies

Hainan University(海南大学)

Yishun Wang, Xiaoqi Li, Shipeng Ye, Lei Xie, Ju Xing

AI总结:

本研究通过分析10,500个智能合约,探讨了外部数据依赖性与合约复杂性之间的关系,旨在提升智能合约的安全性和可靠性。

摘要:

具有外部数据的智能合约对于功能至关重要,但存在安全性和可靠性问题。关于这种交互的统计和定量研究很少。为了解决这一差距,我们分析了10,500个智能合约,在排除过时或错误的合约后保留了9,356个有效的合约。我们通过代码解析将合约代码转换为抽象语法树,并识别出与外部数据依赖性相关的关键词。我们通过将这些关键词与参考列表进行比较进行了定量分析。我们手动对9,356个有效的智能合约进行了分类,以确定其应用领域和与外部数据的典型交互方法。此外,我们创建了一个数据库来存储这些数据,以促进对智能合约依赖性的研究。此外,我们审查了超过3,600份安全审计报告,手动识别出249(约9%)与外部数据交互相关的报告,并对其依赖性进行了分类。我们探讨了智能合约复杂性与外部数据依赖性之间的相关性,以提供设计和审计过程的见解。这些研究旨在提高智能合约的安全性和可靠性,并为开发者和审计师提供实际指导。

英文摘要:

Smart contracts with external data are crucial for functionality but pose security and reliability concerns. Statistical and quantitative studies on this interaction are scarce. To address this gap, we analyzed 10,500 smart contracts, retaining 9,356 valid ones after excluding outdated or erroneous ones. We employed code parsing to transform contract code into abstract syntax trees and identified keywords associated with external data dependencies. We conducted a quantitative analysis by comparing these keywords to a reference list. We manually classified the 9,356 valid smart contracts to ascertain their application domains and typical interaction methods with external data. Additionally, we created a database with this data to facilitate research on smart contract dependencies. Moreover, we reviewed over 3,600 security audit reports, manually identifying 249 (approximately 9%) related to external data interactions and categorized their dependencies. We explored the correlation between smart contract complexity and external data dependency to provide insights for their design and auditing processes. These studies aim to enhance the security and reliability of smart contracts and offer practical guidance to developers and auditors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑