Blockchain transaction processing method and device
Mainly proposes a privacy-protecting blockchain transaction processing solution. The following is a summary of the core points of the document:
Background and purpose:
Background: In traditional blockchain systems, all participants can view and verify transaction data, resulting in the risk of user privacy leakage.
Purpose: To provide a blockchain transaction processing method and device that can avoid user privacy leakage.
Main technical solutions:
Encryption processing: When receiving the privacy transaction data sent by the client, the privacy transaction data is encrypted using the encryption key agreed in the corresponding execution blockchain node group to generate encrypted privacy transaction data.
Consensus processing: The encrypted privacy transaction data is sent to each consensus blockchain node in the blockchain network for consensus processing.
Decryption and execution: After the consensus is passed, the encrypted privacy transaction data is decrypted using the decryption key agreed in the corresponding execution blockchain node group. If the decryption is successful, the privacy transaction data is executed.
Encryption method details:
Public key encryption: The privacy transaction data is encrypted using the public key of each node in the execution blockchain node group to ensure that only the specified node can decrypt.
Symmetric key: One implementation method is to first use the public key of each node to asymmetrically encrypt the symmetric key, and then use the symmetric key to symmetrically encrypt the private transaction data.
Consensus blockchain node:
Composition: includes nodes in the execution blockchain node group and nodes in the blockchain network that are not designated to participate in the execution of private transactions.
Function: All consensus blockchain nodes participate in consensus processing, but only nodes with decryption keys can decrypt and execute private transaction data.
Timestamp and main chain storage:
Timestamp: Encrypted private transaction data has a timestamp, which identifies the generation time of the transaction data.
Main chain storage: After the consensus is passed, the encrypted private transaction data is generated into a main chain block based on the timestamp and stored in the main chain to ensure the consistency of transaction data order.
Private chain storage:
Private chain generation: After the execution processing is completed, the private transaction data and the execution result are generated into a private chain block and stored in the private chain of the corresponding blockchain node.
Empty block generation: When there is no encrypted private transaction data in the main chain block that the corresponding blockchain node participates in executing, an empty block is generated in the private chain to maintain the order consistency.
Device and system implementation:
Device composition: including transaction data encryption unit, transaction data sending unit, transaction data consensus unit, transaction data decryption unit, transaction data execution unit, etc.
System implementation: blockchain transaction processing method is implemented through computing equipment, involving hardware components such as processor, memory, internal bus, etc.
Claims and scope of protection:
The claims list lists each claim in detail, including the specific implementation method and scope of protection of blockchain transaction processing method, device, computing device and storage medium.
This document proposes an innovative blockchain transaction processing solution, which effectively protects user privacy in blockchain transactions through encryption, consensus, decryption and execution steps, and provides new ideas and methods for privacy protection of blockchain technology.