Blockchain Transaction Record Storage Optimization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional blockchain technologies cannot delete or tamper with transaction records, leading to unnecessary data occupation and wastage of storage resources, as all records must be maintained indefinitely, even after account reconciliation is completed.
Innovation Solution
A data processing method that detects to-be-maintained transaction records, constructs a node maintenance tree, and stores them in a second block file, while deleting the original block file, maintaining the head-to-tail connection through hash values to ensure authenticity and reduce storage usage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all transaction records are stored in the blockchain to ensure authenticity, then data authenticity is improved, but storage resources are wasted due to unnecessary data occupation
Solution Approach 1:
The patent extracts only the necessary transaction records (those that have not been reconciled) from the complete blockchain and stores them in a separate second block file. This allows the system to maintain authenticity for relevant data while removing unnecessary historical records that consume storage resources.
Solution Approach 2:
The patent creates a copy of the blockchain structure (second block file) that contains only the necessary transaction records. This copy maintains the hash tree structure and authenticity verification capabilities while storing fewer records, thus resolving the storage efficiency issue.
2Quantity of substance
If transaction records are deleted to save storage space, then storage resources are improved, but data authenticity cannot be maintained
Solution Approach 1:
The patent creates a copy of the blockchain structure (second block file) that maintains the hash tree structure and authenticity verification capabilities. This copy includes only necessary transaction records but preserves the cryptographic integrity needed for authenticity verification.
Solution Approach 2:
The patent segments the blockchain into two parts: the original first block file that can be deleted, and a new second block file that contains only necessary records. This segmentation allows selective data retention while maintaining authenticity through the preserved hash tree structure.
3Reliability
If the blockchain structure is maintained to ensure authenticity, then data authenticity is improved, but unnecessary data occupies storage space
Solution Approach 1:
The patent extracts only the necessary transaction records from the complete blockchain structure and stores them in a condensed second block file. This extraction maintains the essential hash tree structure for authenticity verification while removing unnecessary historical data that consumes storage space.
Solution Approach 2:
The patent changes the parameter of data retention from 'all records indefinitely' to 'only necessary records'. By modifying this parameter, the system maintains authenticity for relevant transactions while significantly reducing the volume of stored data.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
A data processing method and apparatus, a computer device, and a storage medium, the method comprising: for each block in a first block file, detecting a transaction record to be reserved in the block; from the hash tree of the block, selecting a node used for proving that the transaction record belongs to the block; on the basis of the selected node, constructing a node reservation tree; storing the transaction record in a corresponding leaf node of the node reservation tree; updating the association of the block header of the block and the node reservation tree storing the transaction record in a second block file, the block header being adjacent to the block header of the previous block in the second block file; and, after completing the update processing for each block, deleting the first block file. The present method can save storage resources.