IP Library › Granted Patent US 11,381,385
Granted Patent B2
US 11,381,385 · App. 16/768,440 · Granted Jul 5, 2022

Data processing method and apparatus for blockchain, and storage medium

Inventor: Wei Xiao (Beijing, CN)
Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
H04L9/0637H04L9/3247H04L67/1044H04L9/50
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,381,385
App. No.
16/768,440
Granted
Jul 5, 2022
Kind
B2
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.

Claims (52)

1. 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.

2. The method of claim 1 , wherein the rule for creating synchronizing groups comprises at least one of:

a current time satisfying a preset time value; and

a current block height satisfying a preset interval of block heights.

3. The method of claim 1 , after recording the synchronizing signature as the transaction data in the block, further comprising:

saving index data of the synchronizing group in a local index list of synchronizing groups.

4. The method of claim 3 , further comprising:

querying the index data of the synchronizing group in the local index list of synchronizing groups.

5. The method of claim 3 , further comprising:

initiating a transaction request for querying the synchronizing group, and requesting a node generated by the current block to traverse the blockchain from back to front, to query the synchronizing group.

6. The method of claim 1 , wherein determining the synchronizing signature of the synchronizing group based on the one or more synchronizing blocks comprises at least one of:

sequentially connecting block markers of respective synchronizing blocks for signature calculation to form the synchronizing signature of the currently-created synchronizing group;

establishing a Merkle tree by employing the block markers of respective synchronizing blocks, and taking a root of the Merkle tree as the synchronizing signature;

performing signature on block head data of each synchronizing block to form a sub-signature, establishing a Merkle tree by employing respective sub-signatures, and taking a root of the Merkle tree as the synchronizing signature; and

performing signature calculation according to the one or more synchronizing blocks of the currently-created synchronizing group and at least one of synchronizing signatures in existed synchronizing groups, to form the synchronizing signature of the currently-created synchronizing group.

7. The method of claim 6 , wherein determining the synchronizing signature of the synchronizing group based on the one or more synchronizing blocks comprises:

determining the synchronizing signature of the synchronizing group based on the one or more synchronizing blocks and associating information, in which, the associating information comprises at least one of creator information and creating time information.

8. The method of claim 1 , wherein recording the synchronizing signature as the transaction data in the current block comprises:

recording the synchronizing signature as the transaction data in the current block based on a node generated by the current block; and

sending the current block to other nodes for verification.

9. 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.

10. 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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 9, 2020
From: XIAO, WEI
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 053160/0645 →
Priority Claims (1)
CN 201811089389.6 · Sep 18, 2018 · national
Continuity (1)
Related Publication 20200389291A1 · Dec 10, 2020