Solving Data Query Problem Of the Blockchain System In recent years, the design of various blockchain systems has superimposed complex programs such as smart contracts and DEFI, enabling the blockchain to undertake a large number of data functions. These complex data functions have led to higher and higher operating costs for the full nodes of the blockchain, and therefore a large number of light nodes have appeared. The emergence of blockchain light nodes has greatly increased the number of nodes in the network. Combined with full nodes, it can ensure the traceability of data. Although the emergence of light nodes makes the dissemination of block data very simple, the lack of integrity of block data has caused difficulties for future block chain data query and analysis. However, due to the huge amount of data of the full node, a large number of unsolvable problems will appear in the process of data retrieval and query, making the function of the blockchain more and more complicated. The above situation may be a difficult problem for blockchain data retrieval and query at present. Traditional search generally uses the way of query and retrieval under the data chain. Although it effectively avoids the overall complexity of the public chain, the reliability of its data is still doubted by some people. Because a large amount of data is queried on the chain, it is necessary to constantly obtain the latest data
from the chain, which also causes a large amount of resources to be occupied when running tasks. Obviously this is not the optimal solution, so the current blockchain data query and retrieval still need to be optimized. Qitchain solves the problem of blockchain data query Qitchain is mainly divided into four roles, namely, CA certificate authority, full node, light node, and off-chain data center. They share different tasks in the network, so that the blockchain system can operate normally, while also being able to carry more complex smart contracts and on-chain data.
Among them, the main task of the authorization center on the CA chain is to
issue and manage the digital certificate on the chain, which is usually a third party that is responsible for verifying the legitimacy of the public key and ensuring the data security of the blockchain. Full nodes provide complete on-chain data for the entire blockchain. These nodes have higher requirements for running equipment, ensuring the integrity of node data. Light nodes mainly store block header data and are run by individual users, which ensures the distribution of the network and reduces the requirements for node operation. The off-chain database is mainly to reduce network overhead and improve the performance of the overall blockchain network. It is necessary to put some private data or key data offline and build a complete query database at the same time. Qitchain is mainly oriented to on-chain query and on-chain and off-chain joint query mode. On-chain query is to query and retrieve data in all nodes, mainly block transaction query, transaction traceability query, and relational query. Among them, transaction traceability Query can be applied to traceability scenarios such as distributed evidence storage platforms. Block transaction query on the chain is generally used in our common block explorers; on-chain relationship query is to query the various relationships that
exist in the blockchain data under specified conditions, so as to improve the analysis of the funds on the chain at a specified time Block data and transfer data in the segment.