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

Automating Comment Generation for Smart Contract from Bytecode

字节码 计算机科学 程序设计语言 源代码 智能合约 编码(集合论) 集合(抽象数据类型) Java 数据库事务
作者
Jianhang Xiang,Zhipeng Gao,Lingfeng Bao,Xing Hu,J. Chen,Xin Xia
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
标识
DOI:10.1145/3699597
摘要

Recently, smart contracts have played a vital role in automatic financial and business transactions. To help end users without programming background to better understand the logic of smart contracts, previous studies have proposed models for automatically translating smart contract source code into their corresponding code summaries. However, in practice, only 13% of smart contracts deployed on the Ethereum blockchain are associated with source code. The practical usage of these existing tools is significantly restricted. Considering that bytecode is always necessary when deploying smart contracts, in this paper, we first introduce the task of automatically generating smart contract code summaries from bytecode. We propose a novel approach, named S mart BT ( Smart contract B ytecode T ranslator) for automatically translating smart contract bytecode into fine-grained natural language description directly. Two key challenges are posed for this task: structural code logic hidden in bytecode and the huge semantic gap between bytecode and natural language descriptions. To address the first challenge, we transform bytecode into CFG (Control-Flow Graph) to learn code structural and logic details. Regarding the second challenge, we introduce an information retrieval component to fetch similar comments for filling the semantic gap. Then the structural input and semantic input are used to build an attentional sequence-to-sequence neural network model. The copy mechanism is employed to copy rare words directly from similar comments and the coverage mechanism is employed to eliminate repetitive outputs. The automatic evaluation results show that SmartBT outperforms a set of baselines by a large margin, and the human evaluation results show the effectiveness and potential of SmartBT in producing meaningful and accurate comments for smart contract code from bytecode directly.

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

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
量子星尘发布了新的文献求助10
9秒前
12秒前
taiwenshuo完成签到,获得积分20
12秒前
优美若雁完成签到,获得积分10
17秒前
cossen完成签到,获得积分10
29秒前
堪归完成签到 ,获得积分10
29秒前
艾米发布了新的文献求助10
33秒前
科研通AI2S应助科研通管家采纳,获得10
39秒前
reeedirect应助科研通管家采纳,获得10
39秒前
酷波er应助科研通管家采纳,获得10
39秒前
42秒前
心若向阳发布了新的文献求助10
47秒前
CipherSage应助鲁丁丁采纳,获得10
51秒前
58秒前
handsomezzg完成签到,获得积分10
59秒前
艾米完成签到,获得积分10
1分钟前
Sunny完成签到 ,获得积分10
1分钟前
艾米发布了新的文献求助10
1分钟前
1分钟前
集典完成签到 ,获得积分10
1分钟前
Ultraman45发布了新的文献求助10
1分钟前
Ultraman45发布了新的文献求助10
1分钟前
1分钟前
量子星尘发布了新的文献求助10
1分钟前
1分钟前
Ultraman45完成签到,获得积分10
1分钟前
NexusExplorer应助江洋大盗采纳,获得10
1分钟前
meow完成签到 ,获得积分10
1分钟前
情怀应助lf采纳,获得10
1分钟前
1分钟前
1分钟前
hta_chen完成签到,获得积分10
1分钟前
lf发布了新的文献求助10
1分钟前
hta_chen发布了新的文献求助10
1分钟前
1分钟前
Zhy发布了新的文献求助10
2分钟前
李健的小迷弟应助He采纳,获得20
2分钟前
繁荣的青旋完成签到,获得积分10
2分钟前
2分钟前
2分钟前
高分求助中
A new approach to the extrapolation of accelerated life test data 1000
Picture Books with Same-sex Parented Families: Unintentional Censorship 700
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 500
Nucleophilic substitution in azasydnone-modified dinitroanisoles 500
不知道标题是什么 500
Indomethacinのヒトにおける経皮吸収 400
Phylogenetic study of the order Polydesmida (Myriapoda: Diplopoda) 370
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3976619
求助须知:如何正确求助?哪些是违规求助? 3520720
关于积分的说明 11204567
捐赠科研通 3257359
什么是DOI,文献DOI怎么找? 1798716
邀请新用户注册赠送积分活动 877897
科研通“疑难数据库(出版商)”最低求助积分说明 806613