Data processing method and apparatus for blockchain, and storage medium
AssigneeBaidu Online Network Technology (Beijing) Co., Ltd.
InventorWei Xiao
Life of this patent
Estimating the term…
Abstract
Disclosed are a data processing method and apparatus for a blockchain, and a medium. The data processing method for the blockchain is applied to a blockchain node. The method includes: obtaining a transaction request for creating a synchronizing group; based on the transaction request for creating the synchronizing group, determining one or more sequential blocks from a first block to a current block as one or more synchronizing blocks of the synchronizing group; determining a synchronizing signature of the synchronizing group based on the one or more synchronizing blocks; and recording the synchronizing signature as transaction data in the current block.
Claims10
A data processing method for a blockchain, applied to a node of the blockchain, and comprising:
- obtaining a transaction request for creating a synchronizing group;
- based on the transaction request for creating the synchronizing group, determining one or more sequential blocks from a first block to a current block as one or more synchronizing blocks of the synchronizing group;
- determining a synchronizing signature of the synchronizing group based on the one or more synchronizing blocks;
- and
- recording the synchronizing signature as transaction data in the current block;
- wherein obtaining the transaction request for creating the synchronizing group comprises at least one of:
- when it is recognized that a current state satisfies a rule for creating synchronizing groups in local disposition data, initiating the transaction request for creating the synchronizing group;
- when it is recognized that a current state satisfies a rule for creating synchronizing groups stored in a historical block, initiating the transaction request for creating the synchronizing group;
- receiving the transaction request for creating the synchronizing group initiated by any node;
- and
- when a requirement for using synchronizing groups is generated, initiating the transaction request for creating the synchronizing group.
A data processing apparatus for a blockchain, comprising:
- one or more processors;
- a memory storing instructions executable by the one or more processors;
- wherein the one or more processors are configured to:
- obtain a transaction request for creating a synchronizing group;
- based on the transaction request for creating the synchronizing group, determine one or more sequential blocks from a first block to a current block as one or more synchronizing blocks of the synchronizing group;
- determine a synchronizing signature of the synchronizing group based on the one or more synchronizing blocks;
- and
- record the synchronizing signature as transaction data in the current block;
- wherein the transaction request for creating the synchronizing group is obtained by performing at least one of:
- when it is recognized that a current state satisfies a rule for creating synchronizing groups in local disposition data, initiating the transaction request for creating the synchronizing group;
- when it is recognized that a current state satisfies a rule for creating synchronizing groups stored in a historical block, initiating the transaction request for creating the synchronizing group;
- receiving the transaction request for creating the synchronizing group initiated by any node;
- and
- when a requirement for using synchronizing groups is generated, initiating the transaction request for creating the synchronizing group.
A non-transitory medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is caused to implement a data processing method for a blockchain, and the method comprises:
- obtaining a transaction request for creating a synchronizing group;
- based on the transaction request for creating the synchronizing group, determining one or more sequential blocks from a first block to a current block as one or more synchronizing blocks of the synchronizing group;
- determining a synchronizing signature of the synchronizing group based on the one or more synchronizing blocks;
- and
- recording the synchronizing signature as transaction data in the current block;
- wherein obtaining the transaction request for creating the synchronizing group comprises at least one of:
- when it is recognized that a current state satisfies a rule for creating synchronizing groups in local disposition data, initiating the transaction request for creating the synchronizing group;
- when it is recognized that a current state satisfies a rule for creating synchronizing groups stored in a historical block, initiating the transaction request for creating the synchronizing group;
- receiving the transaction request for creating the synchronizing croup initiated by any node;
- and
- when a requirement for using synchronizing croups is generated, initiating the transaction request for creating the synchronizing group.
Dependencies are inferred from the claim text.