Skip to content

Opening book details…

Can I read Automating Comment Generation for Smart Contract from Bytecode on EtoBox?

Automating Comment Generation for Smart Contract from Bytecode by Xiang, Jianhang; Gao, Zhipeng; Bao, Lingfeng; Hu, Xing; Chen, Jiayuan; Xia, Xin is a scholarly article available to read on EtoBox.

What is Automating Comment Generation for Smart Contract from Bytecode about?

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 SmartBT (Smart contract Bytecode Translator) 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 deta

Author
Xiang, Jianhang; Gao, Zhipeng; Bao, Lingfeng; Hu, Xing; Chen, Jiayuan; Xia, Xin
Published
2025
Language
EN

More by Xiang, Jianhang; Gao, Zhipeng; Bao, Lingfeng; Hu, Xing; Chen, Jiayuan; Xia, Xin

Browse all works by Xiang, Jianhang; Gao, Zhipeng; Bao, Lingfeng; Hu, Xing; Chen, Jiayuan; Xia, Xin