Two-Layer Blockchain Database for Indexed Anti-Tampering
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional blockchain-based databases face issues such as sequential storage structure leading to inefficient data retrieval, lack of data indexing, and difficulty in customization for existing business systems, resulting in high application costs and deployment challenges.
Innovation Solution
A two-layered database architecture is implemented, with a blockchain-based bottom layer for data consistency and a relational database layer for indexing, incorporating periodic self-checks and mutual-checks to ensure data reliability and availability, and supporting modular consensus mechanisms for flexibility.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a sequential storage structure is adopted in blockchain-based databases, then data consistency and anti-tampering are improved, but data retrieval efficiency deteriorates
Solution Approach 1:
The database is segmented into two layers: a bottom layer using blockchain for sequential storage of change increment information to ensure consistency, and a top layer using a relational database for storing resultant data information with indexing capabilities for efficient retrieval. This segmentation allows each layer to optimize for its specific function without compromising the other.
Solution Approach 2:
The patent introduces a vertical dimension by adding a top-layer relational database structure above the bottom-layer blockchain storage. This dimensional expansion enables simultaneous access to both the immutable blockchain ledger and the efficiently queryable relational database, resolving the trade-off between consistency and retrieval speed.
2Reliability
If a conventional blockchain-based database structure is used, then data security is improved, but adaptability to existing business systems deteriorates
Solution Approach 1:
The database system is divided into independent modular layers: the bottom layer handles blockchain-based security and consensus, while the top layer provides customizable relational database functionality. This modular segmentation allows each layer to be independently configured and adapted to different business requirements without affecting the core security mechanisms.
Solution Approach 2:
The two-layer architecture provides universal adaptability by combining the security benefits of blockchain with the flexibility of relational databases. The system can serve multiple business functions and integrate with various existing systems while maintaining a unified security framework, making it versatile across different application scenarios.
3Productivity
If a two-layered database architecture is implemented, then data retrieval efficiency and customization are improved, but system complexity increases
Solution Approach 1:
By segmenting the database into distinct bottom and top layers with clearly defined interfaces and responsibilities, the patent manages complexity through modular design. Each layer can be developed, maintained, and scaled independently, reducing the overall system complexity despite the multi-layer architecture.
Data Source
AI summary
A method of constructing a high-performance anti-tampering database based on blockchain includes: acquiring change increment information corresponding to data to-be-stored through at least one of database nodes and storing the change increment information as bottom-layer data of all the database nodes based on a blockchain data structure; determining resultant data information based on the change increment information, indexing and then storing the resultant data information as top-layer data of all the database nodes; performing mutual-checks on stored top-layer data as per a predetermined mutual-checking period and performing self-checks on stored bottom-layer data as per a predetermined self-checking period, by the database nodes; and restoring the bottom-layer and/or top-layer data of the database nodes according to results of mutual-checks and self-checks, to realize database construction. Based on the two-layered database architecture, high reliability and high availability of data can be ensured, and anti-tampering performance can be improved.


