Blockchain Verification Method and System
Mainly proposes a technical solution to accelerate blockchain transaction verification by maintaining a smaller verification database. The following is a summary of the key points of the document:
Background and Purpose:
Traditional blockchain transaction verification: Verification is performed on the status database of all blocks in the blockchain. Due to the limitation of data retrieval speed, the verification efficiency is low.
Purpose: To provide a more efficient blockchain transaction verification method, by maintaining a smaller verification database that only contains the status information of the last few blocks to improve the verification speed and performance.
Verification Database Design:
Data Source: The verification database contains data corresponding to a predetermined number of recent blocks in the blockchain status database.
Storage Medium: The verification database is stored on a high-performance storage medium, such as RAM or SSD, for fast access.
Data Migration: The latest block information in the blockchain status database is regularly migrated to the verification database.
Transaction Verification Process:
Simulation Phase: Simulate each transaction in the new block to determine the simulation height of the transaction (i.e., the number of blocks in the blockchain when the transaction is executed).
Verification Condition: The verification database is used for verification only when the simulation height of the transaction is greater than or equal to the height of the oldest block in the verification database.
Verification process: Use the data in the verification database to verify the transactions in the new block and record the verification results.
Commitment phase: Write the verified transactions to the blockchain and state database, update the verification database at the same time, and delete the oldest data.
Performance optimization:
Reduce random reads: By verifying only the data of the last few blocks, the number of random reads from the state database is greatly reduced.
Improve speed: Use high-performance storage media and smaller data sets to significantly improve the speed of transaction verification.
Cost control: Improve performance by optimizing the verification process without increasing network speed or hardware costs.
System architecture and implementation:
System composition: includes blockchain network, blockchain node, verification database, state database and other components.
Processor configuration: The processor of the blockchain node is responsible for simulating transactions, determining verification conditions, performing verification and submitting new blocks.
Non-temporary computer-readable medium: Contains instructions for performing the above operations to ensure that the system can automatically and efficiently perform the verification process.
Application scenarios and advantages:
Applicable to any cryptographic distributed ledger (CDL), especially blockchain networks.
Improve the transaction processing capabilities of blockchain networks, reduce verification time, and enhance the overall performance of the system.
Transparent integration: transparent to existing blockchain networks, no large-scale transformation of existing systems is required.
Additional features:
Forked chain verification: when a fork occurs in the blockchain, the consensus chain is selected by evaluating the percentage of verification agencies.
Smart contract execution: various operations are performed through blockchain and smart contracts to ensure data consistency and security.
In summary, this paper proposes an innovative blockchain transaction verification method, which significantly improves the verification speed and performance of blockchain transactions by maintaining a small, high-performance verification database, and provides strong technical support for the widespread application of blockchain networks.