亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Checking Smart Contracts With Structural Code Embedding

坚固性 计算机科学 编码(集合论) 智能合约 解析 程序设计语言 词(群论) 语义学(计算机科学) 语言学 数据库事务 哲学 集合(抽象数据类型)
作者
Zhipeng Gao,Lingxiao Jiang,Xin Xia,David Lo,John Grundy
出处
期刊:IEEE Transactions on Software Engineering [Institute of Electrical and Electronics Engineers]
卷期号:47 (12): 2874-2891 被引量:134
标识
DOI:10.1109/tse.2020.2971482
摘要

Smart contracts have been increasingly used together with blockchains to automate financial and business transactions. However, many bugs and vulnerabilities have been identified in many contracts which raises serious concerns about smart contract security, not to mention that the blockchain systems on which the smart contracts are built can be buggy. Thus, there is a significant need to better maintain smart contract code and ensure its high reliability. In this paper, we propose an automated approach to learn characteristics of smart contracts in Solidity, which is useful for clone detection, bug detection and contract validation on smart contracts. Our new approach is based on word embeddings and vector space comparison. We parse smart contract code into word streams with code structural information, convert code elements (e.g., statements, functions) into numerical vectors that are supposed to encode the code syntax and semantics, and compare the similarities among the vectors encoding code and known bugs, to identify potential issues. We have implemented the approach in a prototype, named SmartEmbed. Results show that our tool can effectively identify many repetitive instances of Solidity code, where the clone ratio is around 90\%. Code clones such as type-III or even type-IV semantic clones can also be detected accurately. Our tool can identify more than 1000 clone related bugs based on our bug databases efficiently and accurately. Our tool can also help to efficiently validate any given smart contract against a known set of bugs, which can help to improve the users' confidence in the reliability of the contract. The anonymous replication packages can be accessed at: https://drive.google.com/file/d/1kauLT3y2IiHPkUlVx4FSTda-dVAyL4za/view?usp=sharing, and evaluated it with more than 22,000 smart contracts collected from the Ethereum blockchain.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
lt完成签到 ,获得积分10
41秒前
BowieHuang应助科研通管家采纳,获得10
46秒前
BowieHuang应助科研通管家采纳,获得10
46秒前
BowieHuang应助科研通管家采纳,获得10
46秒前
58秒前
1分钟前
KINGAZX发布了新的文献求助10
1分钟前
2分钟前
纯真的柔发布了新的文献求助10
2分钟前
科研通AI6应助纯真的柔采纳,获得10
2分钟前
BowieHuang应助科研通管家采纳,获得10
2分钟前
科研通AI2S应助科研通管家采纳,获得10
2分钟前
科研通AI2S应助科研通管家采纳,获得10
2分钟前
BowieHuang应助科研通管家采纳,获得10
2分钟前
BowieHuang应助阿里采纳,获得10
3分钟前
3分钟前
令狐凝阳发布了新的文献求助10
4分钟前
4分钟前
RC发布了新的文献求助10
4分钟前
CR7应助令狐凝阳采纳,获得20
4分钟前
BowieHuang应助科研通管家采纳,获得10
4分钟前
4分钟前
李爱国应助npknpk采纳,获得10
4分钟前
5分钟前
5分钟前
ding应助陈文学采纳,获得10
5分钟前
5分钟前
6分钟前
无风风给无风风的求助进行了留言
6分钟前
npknpk发布了新的文献求助10
6分钟前
6分钟前
npknpk完成签到,获得积分10
6分钟前
隐形曼青应助长情洙采纳,获得10
6分钟前
FashionBoy应助科研通管家采纳,获得30
6分钟前
ccc完成签到 ,获得积分10
6分钟前
BowieHuang应助jing采纳,获得10
6分钟前
7分钟前
111完成签到 ,获得积分10
7分钟前
7分钟前
bubble完成签到 ,获得积分10
7分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Clinical Microbiology Procedures Handbook, Multi-Volume, 5th Edition 临床微生物学程序手册,多卷,第5版 2000
List of 1,091 Public Pension Profiles by Region 1621
Les Mantodea de Guyane: Insecta, Polyneoptera [The Mantids of French Guiana] | NHBS Field Guides & Natural History 1500
The Victim–Offender Overlap During the Global Pandemic: A Comparative Study Across Western and Non-Western Countries 1000
King Tyrant 720
T/CIET 1631—2025《构网型柔性直流输电技术应用指南》 500
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5590542
求助须知:如何正确求助?哪些是违规求助? 4674809
关于积分的说明 14795346
捐赠科研通 4633096
什么是DOI,文献DOI怎么找? 2532808
邀请新用户注册赠送积分活动 1501315
关于科研通互助平台的介绍 1468707