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 条
  • [31] SmartFast: an accurate and robust formal analysis tool for Ethereum smart contracts
    Li, Zhaoxuan
    Lu, Siqi
    Zhang, Rui
    Xue, Rui
    Ma, Wenqiu
    Liang, Rujin
    Zhao, Ziming
    Gao, Sheng
    EMPIRICAL SOFTWARE ENGINEERING, 2022, 27 (07)
  • [32] Fitting and Regression for Distributions of Ethereum Smart Contracts
    Alharby, Maher
    van Moorsel, Aad
    2020 2ND CONFERENCE ON BLOCKCHAIN RESEARCH & APPLICATIONS FOR INNOVATIVE NETWORKS AND SERVICES (BRAINS), 2020, : 248 - 255
  • [33] An ABI-based Classification Approach for Ethereum Smart Contracts
    Sun, Xun
    Lin, Xingwei
    Liao, Zhou
    2021 IEEE INTL CONF ON DEPENDABLE, AUTONOMIC AND SECURE COMPUTING, INTL CONF ON PERVASIVE INTELLIGENCE AND COMPUTING, INTL CONF ON CLOUD AND BIG DATA COMPUTING, INTL CONF ON CYBER SCIENCE AND TECHNOLOGY CONGRESS DASC/PICOM/CBDCOM/CYBERSCITECH 2021, 2021, : 99 - 104
  • [34] A Massive Analysis of Ethereum Smart Contracts Empirical Study and Code Metrics
    Pinna, Andrea
    Ibba, Simona
    Baralla, Gavina
    Tonelli, Roberto
    Marchesi, Michele
    IEEE ACCESS, 2019, 7 : 78194 - 78213
  • [35] Recycling Smart Contracts: Compression of the Ethereum Blockchain
    Pontiveros, Beltran Borja Fiz
    Norvill, Robert
    State, Radu
    2018 9TH IFIP INTERNATIONAL CONFERENCE ON NEW TECHNOLOGIES, MOBILITY AND SECURITY (NTMS), 2018,
  • [36] Elipmoc: Advanced Decompilation of Ethereum Smart Contracts
    Grech, Neville
    Lagouvardos, Sifis
    Tsatiris, Ilias
    Smaragdakis, Yannis
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2022, 6 (OOPSLA):
  • [37] SmartFast: an accurate and robust formal analysis tool for Ethereum smart contracts
    Zhaoxuan Li
    Siqi Lu
    Rui Zhang
    Rui Xue
    Wenqiu Ma
    Rujin Liang
    Ziming Zhao
    Sheng Gao
    Empirical Software Engineering, 2022, 27
  • [38] Decentralized On-Chain Data Access via Smart Contracts in Ethereum Blockchain
    Chishti, Mohd Sameen
    Sufyan, Farhan
    Banerjee, Amit
    IEEE TRANSACTIONS ON NETWORK AND SERVICE MANAGEMENT, 2022, 19 (01): : 174 - 187
  • [39] Characterizing Types of Smart Contracts in the Ethereum Landscape
    di Angelo, Monika
    Salzer, Gernot
    FINANCIAL CRYPTOGRAPHY AND DATA SECURITY, FC 2020, 2020, 12063 : 389 - 404
  • [40] Towards Efficient Hashing in Ethereum Smart Contracts
    Onica, Emanuel
    Schifirnet, Cosmin-Ionut
    PROCEEDINGS OF THE 16TH INTERNATIONAL CONFERENCE ON SOFTWARE TECHNOLOGIES (ICSOFT), 2021, : 660 - 666