MFGSCOPE: A Lightweight Framework for Efficient Graph-Based Analysis on Blockchain
- 19 July 2024
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 22 (2) , 1224-1238
Abstract
With the prosperity of the blockchain and the DeFi ecosystem, money flow activities in the blockchains are becoming increasingly frequent, complex, and diverse. The Money Flow Graph (MFG) serves as the foundation for various behavioral analysis, malicious activity detection, and money flow tracing tasks. However, traditional graph databases face the issue of storage requirement and performance when analyzing large-scale MFGs. In this work, we present MFGSCOPE, a lightweight domain-specific framework designed for graph-based analysis on EVM-compatible blockchains, with extensive optimizations for storage efficiency and query performance. The prototype of MFGSCOPE for the Ethereum network achieves the storage of over 3 billion transfers and 1.7 billion relevant transactions in a single instance with less than 450 GB of disk usage. The evaluation shows that for common tasks, MFGSCOPE is more than 30 times faster and requires 78% less storage space than the commonly used graph database Neo4j. For the applications of MFGSCOPE, we present several use cases based on the MFG which cannot be performed efficiently using traditional graph databases and report interesting findings. To engage the community, the prototype of MFGSCOPE for the Ethereum blockchain with the complete dataset will be open source.Keywords
Funding Information
- National Key R&D Program of China (2022YFE0113200)
- National Natural Science Foundation of China (62172360)
- National Natural Science Foundation of China (U21A20464)
- National Natural Science Foundation of China (U21A20467)
This publication has 26 references indexed in Scilit:
- Networks of Ethereum Non-Fungible Tokens: A graph-based analysis of the ERC-721 ecosystem2021
- Graph Based Visualisation Techniques for Analysis of Blockchain Transactions2021
- Formal Analysis of Composable DeFi Protocols2021
- Measuring Ethereum-Based ERC20 Token Networks2019
- DataEther: Data Exploration Framework For Ethereum2019
- Evaluating Serialization for a Publish-Subscribe Based Middleware for MPSoCs2018
- Perfomance Evaluation of Java, JavaScript and PHP Serialization Libraries for XML, JSON and Binary Formats2018
- Understanding Ethereum via Graph Analysis2018
- EtherQL: A Query Layer for Blockchain System2017
- The log-structured merge-tree (LSM-tree)Acta Informatica, 1996