Zellic/smart-contract-fiesta
收藏资源简介:
Zellic 2023智能合约源代码索引数据集是一个公开可用的以太坊主网智能合约源代码集合,旨在为公众提供一个易于下载的智能合约源代码数据集,以推动智能合约安全研究的前沿。数据集包含了截至区块16860349的所有已部署智能合约的地址和字节码哈希索引,以及通过公开资源收集的合约源代码。数据集通过字节码哈希去重,并提供了合约源代码的组织结构和元数据信息。
The Zellic 2023 Smart Contract Source Code Index Dataset is a publicly available collection of Ethereum mainnet smart contract source codes. It aims to provide the public with an easily downloadable smart contract source code dataset to advance the cutting-edge of smart contract security research. The dataset includes the addresses and bytecode hash indexes of all deployed smart contracts up to block 16860349, as well as contract source codes collected from public resources. The dataset is deduplicated by bytecode hash, and provides the organizational structure and metadata of the contract source codes.
数据集概述
数据集名称
- 名称: Zellic 2023 Smart Contract Source Index
- 别名: Zellic Smart Contract Source Index
数据集描述
- 目的: 提供一个公开可下载的以太坊主网智能合约源代码数据集,旨在推动智能合约安全研究的进展。
- 应用: 包括静态分析、机器学习等。
数据集内容
- 方法论:
- 收集所有部署在以太坊主网上的合约地址及其EVM字节码的Keccak256哈希。
- 通过修改的Geth实例从创世区块开始全同步构建索引。
- 通过字节码哈希去重源代码。
- 统计信息:
- 独特源代码数量: 149,386
- 有代码的合约数量: 3,897,319
- 全球索引中的智能合约数量: 30,586,657
- 字符数: 6,473,548,073
- 单词数: 712,444,206
- 代码行数: 90,562,628
- 注释行数: 62,503,873
- 空白行数: 24,485,549
- 总行数: 177,552,050
- 独特单词数: 939,288
数据集结构
- 索引:
- 文件名:
address_bytecodehash_index - 内容: 包含所有已部署智能合约地址与其EVM字节码的Keccak256哈希的映射。
- 文件名:
- 合约源代码:
- 存储位置:
organized_contracts目录下,按字节码哈希组织。 - 包含内容: 源文件及
metadata.json,后者包含编译器版本和优化设置等信息。 - 源格式: 单文件、多文件、Solidity编译器JSON输入。
- 存储位置:
其他信息
- 合约语言: 不仅限于Solidity,还包括Vyper等其他语言。
- 源代码提取: 提供了一个Bash脚本用于提取所有源代码。




