On Efficient Top-K Transaction Path Query Processing in Blockchain Database

Kun Hao,Junchang Xin,Zhiqiong Wang,Zhongming Yao,Guoren Wang
DOI: https://doi.org/10.1016/j.datak.2022.102079
IF: 1.5
2022-01-01
Data & Knowledge Engineering
Abstract:With the rapid development of blockchain, user’s daily financial bills and transfer records can be safely and completely stored in a transaction form. These transactions express commercial preferences for various scenarios and can be used to improve the quality of application services such as data analysis, data security, and recommendation systems. Therefore, there is a growing demand for processing diverse queries over blockchain transactions. In this paper, we formulate a new problem of blockchain top-k transaction path query (BCTkPQ) which returns first k transactions in a given query path according to the user-specified conditions. For processing BCTkPQ, we design a novel Collaborative Query Model (CQM) consisting of a set of collaborative peers and each of which contains three key components, i.e., parser, indexer and executor. First, in the parser, we propose a graph-based structure to denote the transaction paths. Then, in the indexer, we propose a two-level index to increase query and verification efficiency. Finally, in the executor, we present an optimized query algorithm for answering BCTkPQ securely and efficiently and further give a verification algorithm to guarantee the correctness of the query results. We conduct extensive experiments to illustrate the efficiency and effectiveness of our solution.
What problem does this paper attempt to address?