Sound analysis and migration of data from Ethereum smart contracts

被引:0
|
作者
Ayub, Maha [1 ]
Khan, Muhammad Waiz [1 ]
Janjua, Muhammmad Umar [1 ]
机构
[1] Informat Technol Univ, Dept Comp Sci, Lahore, Punjab, Pakistan
关键词
Blockchain; Smart contract; State extraction; Migration; State verification;
D O I
10.1007/s10515-024-00422-3
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the addition of multiple blockchain platforms in the ecosystem, the Dapp owners need to migrate their smart contracts from one platform to another to remain competitive, cost-effective, and secure. A smart contract is a piece of code that contains logic and data. To migrate a smart contract, whether it's on the same blockchain platform or a different one, we need both its source code that represents the logic and data that indicate the state of the contract. The source code can be easily set up, but to complete the migration, we have to extract the current state of the contract. In this paper, we have developed an advanced state extraction technique that uses static analysis to analyze the smart contract's call graph and events, and extracts the entire storage state from the storage trie, along with the proper associations across function calls, enabling users to visualize, manage, and transform the state as desired for migration. The soundness of the extracted state was confirmed using the method of abstract interpretation. Further, the migration adapter is designed to transform the extracted state into slot-value pairs and migrate it to the target blockchain. Using our new approach, we were able to completely analyze 14% more smart contracts with the extraction of 53% more data by analyzing function calls and event logs from 67,993 contracts and also migrated some contracts to the multiple popular EVM-compatible blockchains.
引用
收藏
页数:28
相关论文
共 50 条
  • [41] Securing Smart Grid Communication using Ethereum Smart Contracts
    Akhras, Raphaelle
    El-Hajj, Wassim
    Majdalani, Michel
    Hajj, Hazem
    Jabr, Rabih
    Shaban, Khaled
    2020 16TH INTERNATIONAL WIRELESS COMMUNICATIONS & MOBILE COMPUTING CONFERENCE, IWCMC, 2020, : 1672 - 1678
  • [42] Code cloning in smart contracts: a case study on verified contracts from the Ethereum blockchain platform
    Kondo, Masanari
    Oliva, Gustavo A.
    Jiang, Zhen Ming
    Hassan, Ahmed E.
    Mizuno, Osamu
    EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (06) : 4617 - 4675
  • [43] Data breach Analysis for Financial Smart Contracts
    Laarabi, Mohamed
    Chegri, Badreeddine
    Maach, Abdelilah
    2022 2ND INTERNATIONAL CONFERENCE ON INNOVATIVE RESEARCH IN APPLIED SCIENCE, ENGINEERING AND TECHNOLOGY (IRASET'2022), 2022, : 67 - 77
  • [44] Code cloning in smart contracts: a case study on verified contracts from the Ethereum blockchain platform
    Masanari Kondo
    Gustavo A. Oliva
    Zhen Ming (Jack) Jiang
    Ahmed E. Hassan
    Osamu Mizuno
    Empirical Software Engineering, 2020, 25 : 4617 - 4675
  • [45] ADEFGuard: Anomaly detection framework based on Ethereum smart contracts behaviours
    Ndiaye, Malaw
    Diallo, Thierno Ahmadou
    Konate, Karim
    BLOCKCHAIN-RESEARCH AND APPLICATIONS, 2023, 4 (03):
  • [46] Mutation Testing for Integer Overflow in Ethereum Smart Contracts
    Jinlei Sun
    Song Huang
    Changyou Zheng
    Tingyong Wang
    Cheng Zong
    Zhanwei Hui
    Tsinghua Science and Technology, 2022, 27 (01) : 27 - 40
  • [47] Detect Abnormal Behaviours in Ethereum Smart Contracts Using Attack Vectors
    Quoc-Bao Nguyen
    Nguyen, Anh-Quynh
    Van-Hoa Nguyen
    Thanh Nguyen-Le
    Khuong Nguyen-An
    FUTURE DATA AND SECURITY ENGINEERING (FDSE 2019), 2019, 11814 : 485 - 505
  • [48] Technical Usability Assessment of Security Analysis Tools for Ethereum Based Smart Contracts
    Zeeshan, Rana
    Tal, Irina
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY, AND SECURITY COMPANION, QRS-C, 2022, : 87 - 95
  • [49] SCSGuard: Deep Scam Detection for Ethereum Smart Contracts
    Hu, Huiwen
    Bai, Qianlan
    Xu, Yuedong
    IEEE INFOCOM 2022 - IEEE CONFERENCE ON COMPUTER COMMUNICATIONS WORKSHOPS (INFOCOM WKSHPS), 2022,
  • [50] Detecting Nondeterministic Payment Bugs in Ethereum Smart Contracts
    Wang, Shuai
    Zhang, Chengyu
    Su, Zhendong
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (OOPSLA):