# US 2023/0275772 A1 · Consensus processing method, apparatus, and system for blockchain network, device, and medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0275772 A1
- Document ID: US20230275772A1
- Status: Published application
- Kind: A1
- Application number: 18/314,111
- Filed: 2023-05-08
- Published: 2023-08-31
- Earliest claimed: 2021-06-04
- Assignees: Tencent Cloud Computing (Beijing) Co., Ltd.
- Applicants: Tencent Cloud Computing (Beijing) Co., Ltd.
- Inventors: Zhuguang SHAO
- Web page: https://patentgrep.com/patent/US20230275772A1

## CPC

- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 9/3265: {using certificate chains, trees or paths; Hierarchical trust model}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A consensus processing method includes: obtaining an associated set, the associated set including a plurality of pieces of block associated data, the plurality of pieces of block associated data including a plurality of pieces of block shard data, and the plurality of pieces of block shard data being obtained by dividing a service block on which consensus is to be reached; transmitting a part of the block associated data in the associated set to the second consensus nodes, so that the second consensus nodes broadcast, to each other, the block associated data received by each other and restore the service block; and reaching consensus on the service block between the first consensus node and the plurality of second consensus nodes.

## Claims

### Claim 1

A consensus processing method for a blockchain network, the blockchain network comprising a first consensus node and a plurality of second consensus nodes, the method being executed by the first consensus node, and the method comprising:
obtaining an associated set, the associated set comprising a plurality of pieces of block associated data, the plurality of pieces of block associated data comprising a plurality of pieces of block shard data, and the plurality of pieces of block shard data being obtained by dividing a service block on which consensus is to be reached;
transmitting a part of the block associated data in the associated set to the second consensus nodes respectively, so that the second consensus nodes broadcast, to each other, the block associated data received by each other and restore the service block; and
reaching consensus on the service block between the first consensus node and the plurality of second consensus nodes.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the plurality of pieces of block associated data further comprise at least one piece of block redundant data, and the at least one piece of block redundant data is obtained by performing redundant calculation on the plurality of pieces of block shard data.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the method further comprises:
respectively performing redundant calculation on the plurality of pieces of block shard data according to each of M redundant algorithms, to obtain block redundant data corresponding to each redundant algorithm, wherein M is a positive integer.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the method further comprises:
determining a value of M according to a network stability level of the blockchain network.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the service block comprises a plurality of pieces of block field data, and each of the plurality of pieces of block shard data comprises a part of the block field data in the service block.

### Claim 6 (depends on 1)

The method according to claim 1, wherein a number of pieces of block associated data comprised in the associated set is equal to a number of the plurality of second consensus nodes.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the method further comprises:
receiving a plurality of pieces of service associated data, wherein the plurality of pieces of service associated data comprise first service associated data transmitted by a service client and second service associated data transmitted by the service client and forwarded by each second consensus node, the plurality of pieces of service associated data comprise a plurality of pieces of service shard data, and the plurality of pieces of service shard data are obtained by the service client by dividing the service data; and
obtaining the service block based on the plurality of pieces of service associated data.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the plurality of pieces of service associated data further comprise at least one piece of service redundant data, and the at least one piece of service redundant data is obtained by the service client by performing redundant calculation on the plurality of pieces of service shard data; and
the obtaining the service block based on the plurality of pieces of service associated data comprises:
restoring the service data based on the plurality of pieces of service shard data and the at least one piece of service redundant data; and
obtaining the service block based on the service data.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the receiving the first service associated data transmitted by the service client comprises:
receiving first verification associated data and a first verification hash value, wherein the first verification associated data corresponds to the first service associated data transmitted by the service client, and the first verification hash value is a hash value of the first service associated data; and
calculating a hash value of the first verification associated data, and when the hash value of the first verification associated data is the same as the first verification hash value, determining the first verification associated data as the first service associated data.

### Claim 10 (depends on 7)

The method according to claim 7, wherein the receiving the second service associated data transmitted by the second consensus node comprises:
receiving second verification associated data and a second verification hash value, wherein the second verification associated data corresponds to second service associated data transmitted by one of the second consensus nodes, and the second verification hash value is a hash value of the second service associated data; and
calculating a hash value of the second verification associated data, and when the hash value of the second verification associated data is the same as the second verification hash value, determining the second verification associated data as the second service associated data.

### Claim 11 (depends on 7)

The method according to claim 7, wherein the obtaining the service block based on the plurality of pieces of service associated data comprises:
receiving a root node of a first service Merkle tree, wherein the first service Merkle tree is generated by the service client according to hash values of the plurality of pieces of service associated data transmitted by the service client;
constructing a second Merkle tree according to the hash values of the plurality of pieces of received service associated data; and
when the root node of the first service Merkle tree is the same as a root node of the second service Merkle tree, obtaining the service block based on the plurality of pieces of received service associated data.

### Claim 12 (depends on 7)

The method according to claim 7, wherein the method further comprises:
generating reply data for the service data; and
transmitting first reply associated data to the service client, wherein the first reply associated data is one of a plurality of pieces of reply shard data, or is one of at least one piece of reply redundant data, the plurality of pieces of reply shard data are obtained by dividing the reply data, and the at least one piece of reply redundant data is obtained by performing redundant calculation on the plurality of pieces of reply shard data.

### Claim 13

A consensus processing apparatus for a blockchain network, the blockchain network comprises a first consensus node hosted by the apparatus and a plurality of second consensus nodes, and the apparatus comprises a memory and a processor, the memory storing a computer program, and the computer program, when executed by the processor, causing the processor to perform:
obtaining an associated set, the associated set comprising a plurality of pieces of block associated data, the plurality of pieces of block associated data comprising a plurality of pieces of block shard data, and the plurality of pieces of block shard data being obtained by dividing a service block on which consensus is to be reached;
transmitting a part of the block associated data in the associated set to the second consensus nodes respectively, so that the second consensus nodes broadcast, to each other, the block associated data received by each other and restore the service block; and
reaching consensus on the service block between the first consensus node and the plurality of second consensus nodes.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the plurality of pieces of block associated data further comprise at least one piece of block redundant data, and the at least one piece of block redundant data is obtained by performing redundant calculation on the plurality of pieces of block shard data.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the processor is further configured to perform:
respectively performing redundant calculation on the plurality of pieces of block shard data according to each of M redundant algorithms, to obtain block redundant data corresponding to each redundant algorithm, wherein M is a positive integer.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the processor is further configured to perform:
determining a value of M according to a network stability level of the blockchain network.

### Claim 17 (depends on 13)

The apparatus according to claim 13, wherein the service block comprises a plurality of pieces of block field data, and each of the plurality of pieces of block shard data comprises a part of the block field data in the service block.

### Claim 18 (depends on 13)

The apparatus according to claim 13, wherein a number of pieces of block associated data comprised in the associated set is equal to a number of the plurality of second consensus nodes.

### Claim 19 (depends on 13)

The apparatus according to claim 13, wherein the processor is further configured to perform:
receiving a plurality of pieces of service associated data, wherein the plurality of pieces of service associated data comprise first service associated data transmitted by a service client and second service associated data transmitted by the service client and forwarded by each second consensus node, the plurality of pieces of service associated data comprise a plurality of pieces of service shard data, and the plurality of pieces of service shard data are obtained by the service client by dividing the service data; and

### Claim 20

A consensus processing method for a blockchain network, consensus nodes in the blockchain network comprise a first consensus node and a plurality of second consensus nodes, the method is executed by a service client, and the method comprises:
obtaining an associated set, the associated set comprising a plurality of pieces of service associated data, the plurality of pieces of service associated data comprising a plurality of pieces of service shard data, and the plurality of pieces of service shard data being obtained by dividing service data; and
transmitting a part of the service associated data in the associated set to a consensus node in the blockchain network, wherein the second consensus nodes respectively transmit received service associated data to the first consensus node, and the first consensus node restores the service data based on the received service associated data and performs consensus processing on the service data.
obtaining the service block based on the plurality of pieces of service associated data.
