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.


翻译:依赖外部数据的智能合约对实现功能至关重要,但也引发了安全性与可靠性问题。目前关于此类交互的统计与定量研究仍较为匮乏。为填补这一空白,我们分析了10,500份智能合约,在排除过时或存在错误的合约后,保留了9,356份有效合约。我们采用代码解析技术将合约代码转换为抽象语法树,并识别出与外部数据依赖相关的关键词。通过将这些关键词与参考列表进行比对,我们开展了定量分析。我们对9,356份有效智能合约进行了人工分类,以确定其应用领域及与外部数据的典型交互方式。此外,我们基于这些数据构建了一个数据库,以促进智能合约依赖性的相关研究。进一步地,我们审阅了超过3,600份安全审计报告,人工识别出其中249份(约占总数的9%)涉及外部数据交互,并对其依赖类型进行了分类。我们还探究了智能合约复杂度与外部数据依赖性之间的关联,以期为合约设计与审计流程提供参考。这些研究旨在提升智能合约的安全性与可靠性,并为开发者和审计人员提供实践指导。

0
下载
关闭预览

相关内容

数据智能服务产业发展研究报告(2025年)
专知会员服务
21+阅读 · 1月28日
《大数据如何塑造机器人技术与军事科技中的智能系统》
面向具身智能的多模态数据存储与检索:综述
专知会员服务
29+阅读 · 2025年8月20日
谷歌最新《大语言模型合成数据的最佳实践和经验教训》
美智库最新报告:小数据人工智能潜力不可估量,39页pdf
专知会员服务
75+阅读 · 2021年11月18日
专知会员服务
34+阅读 · 2021年5月8日
智能合约的形式化验证方法研究综述
专知
16+阅读 · 2021年5月8日
智能交通大数据最新论文综述-附PDF下载
专知
22+阅读 · 2019年1月21日
最全数据科学学习资源:Python、线性代数、机器学习...
人工智能头条
12+阅读 · 2018年5月14日
智能时代如何构建金融反欺诈体系?
数据猿
12+阅读 · 2018年3月26日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
4+阅读 · 2015年12月31日
国家自然科学基金
25+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
8+阅读 · 2014年12月31日
国家自然科学基金
7+阅读 · 2014年12月31日
国家自然科学基金
3+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2009年12月31日
VIP会员
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
4+阅读 · 2015年12月31日
国家自然科学基金
25+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
8+阅读 · 2014年12月31日
国家自然科学基金
7+阅读 · 2014年12月31日
国家自然科学基金
3+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2009年12月31日
Top
微信扫码咨询专知VIP会员