典型文献
Characterizing and Detecting Gas-Inefficient Patterns in Smart Contracts
文献摘要:
Ethereum blockchain is a new internetware with tens of millions of smart contracts running on it.Different from general programs,smart contracts are decentralized,tamper-resistant and permanently running.Moreover,to avoid resource abuse,Ethereum charges users for deploying and invoking smart contracts according to the size of contract and the operations executed by contracts.It is necessary to optimize smart contracts to save money.However,since developers are not familiar with the operating environment of smart contracts(i.e.,Ethereum virtual machine)or do not pay attention to resource consumption during development,there are many optimization opportunities for smart contracts.To fill this gap,this paper defines six gas-inefficient patterns from more than 25 000 posts and proposes an optimization approach at the source code level to let users know clearly where the contract is optimized.To evaluate the prevalence and economic benefits of gas-inefficient patterns,this paper conducts an empirical study on more than 160 000 real smart contracts.The promising experimental results demonstrate that 52.75%of contracts contain at least one gas-inefficient pattern proposed in this paper.If these patterns are removed from the contract,at least $0.30 can be saved per contract.
文献关键词:
中图分类号:
作者姓名:
Que-Ping Kong;Zi-Yan Wang;Yuan Huang;Xiang-Ping Chen;Xiao-Cong Zhou;Zi-Bin Zheng;Gang Huang
作者机构:
School of Computer Science and Engineering,Sun Yat-sen University,Guangzhou 510006,China;School of Software Engineering,Sun Yat-sen University,Zhuhai 519082,China;Guangdong Key Laboratory for Big Data Analysis and Simulation of Public Opinion,School of Communication and Design,Sun Yat-sen University,Guangzhou 510006,China;Peking University Shenzhen Graduate School,Shenzhen 518000,China
文献出处:
引用格式:
[1]Que-Ping Kong;Zi-Yan Wang;Yuan Huang;Xiang-Ping Chen;Xiao-Cong Zhou;Zi-Bin Zheng;Gang Huang-.Characterizing and Detecting Gas-Inefficient Patterns in Smart Contracts)[J].计算机科学技术学报(英文版),2022(01):67-82
A类:
internetware
B类:
Characterizing,Detecting,Gas,Inefficient,Patterns,Smart,Contracts,Ethereum,blockchain,new,tens,millions,smart,contracts,running,Different,from,general,programs,decentralized,tamper,resistant,permanently,Moreover,avoid,resource,abuse,charges,users,deploying,invoking,according,size,operations,executed,by,It,necessary,money,However,since,developers,not,familiar,operating,environment,virtual,machine,do,pay,attention,consumption,during,development,many,optimization,opportunities,To,fill,this,gap,paper,defines,six,gas,inefficient,patterns,more,than,posts,proposes,approach,code,level,let,know,clearly,where,optimized,evaluate,prevalence,economic,benefits,conducts,empirical,study,real,promising,experimental,results,demonstrate,that,contain,least,proposed,If,these,removed,can,saved
AB值:
0.56521
相似文献
机标中图分类号,由域田数据科技根据网络公开资料自动分析生成,仅供学习研究参考。