Applying blockchain-based method to smart contract classification for CPS applications

被引:7
作者
Jiang, Zigui [1 ]
Chen, Kai [2 ]
Wen, Hailin [3 ]
Zheng, Zibin [1 ]
机构
[1] Sun Yat Sen Univ, Sch Software Engn, Guangzhou, Peoples R China
[2] Sun Yat Sen Univ, Sch Math, Guangzhou, Peoples R China
[3] Sun Yat Sen Univ, Sch Comp Sci & Engn, Guangzhou, Peoples R China
基金
中国国家自然科学基金;
关键词
Blockchain; Blockchain-based application; Smart contract; DApp classification; Solidity; RESOURCE-MANAGEMENT; QOS;
D O I
10.1016/j.dcan.2022.08.011
中图分类号
TN [电子技术、通信技术];
学科分类号
0809 ;
摘要
Smart contract has been the core of blockchain systems and other blockchain-based systems since Blockchain 2.0. Various operations on blockchain are performed through the invocation and execution of smart contracts. This leads to extensive combinations between blockchain, smart contract, Internet of Things (IoT) and Cyber-Physical System (CPS) applications, and then many blockchain-based IoT or CPS applications emerge to provide multiple benefits to the economy and society. In this case, obtaining a better understanding of smart contracts will contribute to the easier operation, higher efficiency and stronger security of those blockchain-based systems and applications. Many existing studies on smart contract analysis are based on similarity calculation and smart contract classification. However, smart contract is a piece of code with special characteristics and most of smart contracts are stored without any category labels, which leads to difficulties of smart contract classification. As the back end of a blockchain-based Decentralized Application (DApp) is one or several smart contracts, DApps with labeled categories and open source codes are applied to achieve a supervised smart contract classification. A three-phase approach is proposed to categorize DApps based on various data features. In this approach, 5,659 DApps with smart contract source codes and pre-tagged categories are first obtained based on massive collected DApps and smart contracts from Ethereum, State of the DApps and DappRadar. Then feature extraction and construction methods are designed to form multi-feature vectors that could present the major characteristics of DApps. Finally, a fused classification model consisting of KNN, XGBoost and random forests is applied to the multi-feature vectors of all DApps for performing DApp classification. The experimental results show that the method is effective. In addition, some positive correlations between feature variables and categories, as well as several user behavior patterns of DApp calls, are found in this paper.
引用
收藏
页码:964 / 975
页数:12
相关论文
共 63 条
[1]   ETHIR: A Framework for High-Level Analysis of Ethereum Bytecode [J].
Albert, Elvira ;
Gordillo, Pablo ;
Livshits, Benjamin ;
Rubio, Albert ;
Sergey, Ilya .
AUTOMATED TECHNOLOGY FOR VERIFICATION AND ANALYSIS (ATVA 2018), 2018, 11138 :513-520
[2]   Sherlock N-overlap: Invasive Normalization and Overlap Coefficient for the Similarity Analysis Between Source Code [J].
Allyson, Franca B. ;
Danilo, Maciel L. ;
Jose, Soares M. ;
Giovanni, Barroso C. .
IEEE TRANSACTIONS ON COMPUTERS, 2019, 68 (05) :740-751
[3]  
Bai QL, 2020, Arxiv, DOI arXiv:2001.05251
[4]  
Bartoletti Massimo, 2017, Financial Cryptography and Data Security. FC 2017 International Workshops WAHC, BITCOIN, VOTING, WTSC, and TA. Revised Selected Papers: LNCS 10323, P494, DOI 10.1007/978-3-319-70278-0_31
[5]   Dissecting Ponzi schemes on Ethereum: Identification, analysis, and impact [J].
Bartoletti, Massimo ;
Carta, Salvatore ;
Cimoli, Tiziana ;
Saia, Roberto .
FUTURE GENERATION COMPUTER SYSTEMS-THE INTERNATIONAL JOURNAL OF ESCIENCE, 2020, 102 :259-277
[6]   Multiclass Oblique Random Forests With Dual-Incremental Learning Capacity [J].
Chai, Zheng ;
Zhao, Chunhui .
IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, 2020, 31 (12) :5192-5203
[7]  
Chatterjee Krishnendu, 2018, Programming Languages and Systems. 27th European Symposium on Programming, ESOP 2018, held as part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2018. Proceedings: LNCS 10801, P739, DOI 10.1007/978-3-319-89884-1_26
[8]   XGBoost: A Scalable Tree Boosting System [J].
Chen, Tianqi ;
Guestrin, Carlos .
KDD'16: PROCEEDINGS OF THE 22ND ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING, 2016, :785-794
[9]   DataEther: Data Exploration Framework For Ethereum [J].
Chen, Ting ;
Li, Zihao ;
Zhang, Yufei ;
Luo, Xiapu ;
Chen, Ang ;
Yang, Kun ;
Hu, Bin ;
Zhu, Tong ;
Deng, Shifang ;
Hu, Teng ;
Chen, Jiachi ;
Zhang, Xiaosong .
2019 39TH IEEE INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS (ICDCS 2019), 2019, :1369-1380
[10]  
Chen T, 2018, IEEE INFOCOM SER, P1484, DOI 10.1109/INFOCOM.2018.8486401