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 条
  • [21] A security framework for Ethereum smart contracts
    Lopez Vivar, Antonio
    Sandoval Orozco, Ana Lucila
    Garcia Villalba, Luis Javier
    COMPUTER COMMUNICATIONS, 2021, 172 : 119 - 129
  • [22] Security Vulnerabilities in Ethereum Smart Contracts
    Mense, Alexander
    Flatscher, Markus
    IIWAS2018: THE 20TH INTERNATIONAL CONFERENCE ON INFORMATION INTEGRATION AND WEB-BASED APPLICATIONS & SERVICES, 2014, : 375 - 380
  • [23] SKLEE: A Dynamic Symbolic Analysis Tool for Ethereum Smart Contracts (Tool Paper)
    Jain, Namrata
    Kaneko, Kosuke
    Sharma, Subodh
    SOFTWARE ENGINEERING AND FORMAL METHODS, SEFM 2022, 2022, 13550 : 244 - 250
  • [24] Honeypot Contract Risk Warning on Ethereum Smart Contracts
    Chen, Weili
    Guo, Xiongfeng
    Chen, Zhiguang
    Zheng, Zibin
    Lu, Yutong
    Li, Yin
    2020 IEEE INTERNATIONAL CONFERENCE ON JOINT CLOUD COMPUTING (JCC 2020), 2020, : 1 - 8
  • [25] Accurate and decentralized timestamping using smart contracts on the Ethereum blockchain
    Estevam, Gabriel
    Palma, Lucas M.
    Silva, Luan R.
    Martina, Jean E.
    Vigil, Martin
    INFORMATION PROCESSING & MANAGEMENT, 2021, 58 (03)
  • [26] Gas-centered mutation testing of Ethereum Smart Contracts
    Delgado-Perez, Pedro
    Melendez-Lapi, Ignacio
    Boubeta-Puig, Juan
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (09)
  • [27] Code Will Speak: Early detection of Ponzi Smart Contracts on Ethereum
    Zhang, Yanmei
    Kang, Siqian
    Dai, Wei
    Chen, Shiping
    Zhu, Jianming
    2021 IEEE INTERNATIONAL CONFERENCE ON SERVICES COMPUTING (SCC 2021), 2021, : 301 - 308
  • [28] Static Profiling and Optimization of Ethereum Smart Contracts Using Resource Analysis
    Correas, Jesus
    Gordillo, Pablo
    Roman-Diez, Guillermo
    IEEE ACCESS, 2021, 9 : 25495 - 25507
  • [29] The Risks and Challenges of Implementing Ethereum Smart Contracts
    Harris, Christopher G.
    2019 IEEE INTERNATIONAL CONFERENCE ON BLOCKCHAIN AND CRYPTOCURRENCY (ICBC), 2019, : 104 - 107
  • [30] A Modeling and Verification Framework for Ethereum Smart Contracts
    Valentini, Simone
    Braghin, Chiara
    Riccobene, Elvinia
    RIGOROUS STATE-BASED METHODS, ABZ 2024, 2024, 14759 : 201 - 207