arrow
返回

Studying differentiated code to support smart contract update

delete2023-09-13
delete1
PRE
AI
X
Xiangping Chen
P
Peiyong Liao
Q
Queping Kong
黄袁 封面图
黄袁 (Yuan Huang) *
X
Xiaocong Zhou
DOI:10.1007/s10664-023-10359-ydelete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Smart contracts have received a lot of attention. A smart contract is a program that runs on a blockchain. Some recent studies reveal that most of the smart contracts on the Ethereum blockchain are highly similar. An inexperienced smart contract developer can refer to some existing smart contracts that is similar to their own contracts to help their development by applying the differentiated code from the existing similar contracts. How to identify similar contracts and extract differentiated code to recommend to the developers as guidance is what we aim for in this work. Differentiated code is defined as the source code excluding the repeated part in two similar smart contracts, which usually illustrates how a software feature is implemented or a programming issue is solved. Thus, differentiated code might be used to guide the update of a smart contract. In this paper, we propose a differentiated code recommendation approach, SmartDiffrec, for supporting smart contract update. Specifically, we apply syntax and semantic similarities to discover the similar contracts for a given target contract, and then recommend the differentiated code to the target contract. Moreover, we investigate three research questions to analyze the effectiveness of our approach from the whole to the specific. The results show that the differentiated codes extracted found by our approach can effectively support smart contract update.
Keyword:
Smart contract
Differentiated code
Contract update
Evolution analysis
Code retrieval

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

S
Sun Yat Sen University
学者数:
9.9W
论文数: 7.2W
被引数: 95
引用论文

引用论文

Orientational Dynamics of theSc3Trimer inC82: An EPR Study
err1994-12-19
err0
errOAAI
errP. H. M. van Loosdrecht; R. D. Johnson; M. S. de Vries; C. -H. Kiang; D. S. Bethune; H. C. Dorn; P. Burbank; S. Stevenson
err分享
err收藏
Ultrafast Absorption Changes of the Lhcii Carotenoids upon Selective Excitation of the Chlorophylls
err1998-01-01
err0
PREAI
errC. C. Gradinaru; I. H. M. van Stokkum; R. van Grondelle; H. van Amerongen
err分享
err收藏
err分享
err收藏
Network Physiology: How Organ Systems Dynamically Interact网络生理学: 器官系统如何动态交互
err2015-11-10
err0
errOAAI
errRonny P. Bartsch; Kang K. L. Liu; Amir Bashan; Plamen Ch. Ivanov
err分享
err收藏
Influence of strain-rate on the interaction between towed fishing gears and the seabed
err2023-04-01
err0
errOAAI
errShamendra M Aluwihare; Ana Ivanović; Finbarr G. O'Neill
err分享
err收藏
学者 查看更多内容