arrow
Return

Studying differentiated code to support smart contract update

delete2023-09-13
delete1
PRE
AI
X
Xiangping Chen
P
Peiyong Liao
Q
Queping Kong
黄袁 cover
黄袁 (Yuan Huang) *
X
Xiaocong Zhou
DOI:10.1007/s10664-023-10359-ydelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Smart contract
Differentiated code
Contract update
Evolution analysis
Code retrieval

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

S
Sun Yat Sen University
Scholars:
9.9W
Papers: 7.2W
Citations: 95
Cited Papers

Cited Papers

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
errShare
errSave
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
errShare
errSave
errShare
errSave
Network Physiology: How Organ Systems Dynamically Interact
err2015-11-10
err0
errOAAI
errRonny P. Bartsch; Kang K. L. Liu; Amir Bashan; Plamen Ch. Ivanov
errShare
errSave
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
errShare
errSave
researcher View more