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

被引:1
|
作者
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
相关论文
共 50 条
  • [41] Privacy in Blockchain-based Smart Grids
    Bracciale, Lorenzo
    Raso, Emanuele
    Gallo, Pierluigi
    Sanseverino, Eleonora Riva
    Bianchi, Giuseppe
    Loreti, Pierpaolo
    [J]. 2022 WORKSHOP ON BLOCKCHAIN FOR RENEWABLES INTEGRATION (BLORIN), 2022, : 37 - 41
  • [42] Smart Payment Contract Mechanism Based on Blockchain Smart Contract Mechanism
    Ge, Xianyun
    [J]. SCIENTIFIC PROGRAMMING, 2021, 2021
  • [43] Blockchain Oracles: A Framework for Blockchain-Based Applications
    Mammadzada, Kamran
    Iqbal, Mubashar
    Milani, Fredrik
    Garcia-Banuelos, Luciano
    Matulevicius, Raimundas
    [J]. BUSINESS PROCESS MANAGEMENT: BLOCKCHAIN AND ROBOTIC PROCESS AUTOMATION FORUM, BPM 2020 BLOCKCHAIN AND RPA FORUM, 2020, 393 : 19 - 34
  • [44] Applying Design Patterns in Smart Contracts A Case Study on a Blockchain-Based Traceability Application
    Liu, Yue
    Lu, Qinghua
    Xu, Xiwei
    Zhu, Liming
    Yao, Haonan
    [J]. BLOCKCHAIN - ICBC 2018, 2018, 10974 : 92 - 106
  • [45] Blockchain-Based Energy Trading and Load Balancing Using Contract Theory and Reputation in a Smart Community
    Yahaya, Adamu Sani
    Javaid, Nadeem
    Javed, Muhammad Umar
    Shafiq, Muhammad
    Khan, Wazir Zada
    Aalsalem, Mohammed Y.
    [J]. IEEE ACCESS, 2020, 8 : 222168 - 222186
  • [46] Risk factors affecting blockchain-based smart contract use in architecture, engineering, and construction industry
    Aladag, Hande
    Guven, Ilkim
    [J]. MEGARON, 2023, 18 (02): : 246 - 262
  • [47] A Scalable Blockchain-based Smart Contract Model for Decentralized Voltage Stability Using Sharding Technique
    Honari, Kimia
    Zhou, Xiaotian
    Rouhani, Sara
    Dick, Scott
    Liang, Hao
    Li, Yunwei
    Miller, James
    [J]. 2022 IEEE INTERNATIONAL CONFERENCE ON BLOCKCHAIN (BLOCKCHAIN 2022), 2022, : 124 - 131
  • [48] Research on Smart Contract Optimization Method on Blockchain
    Hu, Wen
    Fan, Zhipeng
    Gao, Ye
    [J]. IT PROFESSIONAL, 2019, 21 (05) : 33 - 38
  • [49] Blockchain-based smart contract for issuance of country of origin certificate for Indian Customs Exports Clearance
    Tyagi, Nitin K.
    Goyal, Mukta
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2023, 35 (16):
  • [50] Privacy-Preserving Anomaly Detection of Encrypted Smart Contract for Blockchain-Based Data Trading
    Chen, Dajiang
    Liao, Zeyu
    Chen, Ruidong
    Wang, Hao
    Yu, Chong
    Zhang, Kuan
    Zhang, Ning
    Shen, Xuemin
    [J]. IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING, 2024, 21 (05) : 4510 - 4525