IP Library › Granted Patent US 11,722,318
Granted Patent B2
US 11,722,318 · App. 17/362,692 · Granted Aug 8, 2023

Message transmission methods and apparatuses

Inventors: He Sun (Hangzhou, CN); Chao Zeng (Hangzhou, CN); Jiang Wang (Hangzhou, CN)
Assignee: Alipay (Hangzhou) Information Technology Co., Ltd.
H04L9/3263H04L9/0825H04L9/3247H04L9/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,722,318
App. No.
17/362,692
Filed
Jun 29, 2021
Granted
Aug 8, 2023
Kind
B2
Art Unit
2439
USPC
713/156
Abstract

This specification provides a message transmission methods and apparatuses. One method includes: receiving a digital certificate sent by each blockchain node of a plurality of blockchain nodes in a blockchain relay communication network, wherein the digital certificate comprises identity information of each blockchain node of the plurality of blockchain nodes and a network identifier of a blockchain network of the blockchain relay communication network that comprises a corresponding blockchain node of the plurality of blockchain nodes; verifying that a digital signature of the digital certificate is authentic based on a public key of a certification authority (CA) issuing the digital certificate; and recording a mapping relationship between the identity information of each blockchain node of the plurality of blockchain nodes and the network identifier.

Claims (55)

1. A computer-implemented method, comprising:

registering, by a relay node of a blockchain relay communication network in response to a registration request received from a blockchain node of a plurality of blockchain nodes, the blockchain node to a set indicated by the registration request, wherein a first digital certificate of a relay node corresponding to each blockchain node of the plurality of blockchain nodes is verified be to authentic based on a public key of a certification authority (CA) of the blockchain relay communication network;

in response to the first digital certificate of the relay node being verified, receiving, by the relay node, a second digital certificate of each blockchain node sent by each blockchain node of the plurality of blockchain nodes, wherein the second digital certificate of each blockchain node is issued by the CA of the blockchain relay communication network and comprises identity information of a corresponding blockchain node and a network identifier of a blockchain network that comprises the corresponding blockchain node;

verifying, by the relay node, that a digital signature of the second digital certificate is authentic based on the public key of the CA;

in response to verifying that the digital signature is authentic, recording, by the relay node, a mapping relationship between the identity information of the corresponding blockchain node and the network identifier of the blockchain network that comprises the corresponding blockchain node;

receiving, by the relay node from a sending blockchain node of the plurality of blockchain nodes, a blockchain message comprising a consensus message and including a set identifier of a target blockchain node set, wherein the target blockchain node set includes a set of blockchain nodes for performing consensus;

in response to receiving the blockchain message, determining, by the relay node, that

a) the sending blockchain node and a receiving blockchain node of the blockchain message are in a same blockchain network based on determining i) a receiver identity of the receiving blockchain node of the blockchain message and ii) a target network identifier of a target blockchain network that comprises the sending blockchain node, and

b) the receiving blockchain node is a node included in the target blockchain node set for performing the consensus;

determining, by the relay node according to the mapping relationship, a target blockchain node whose identifier is jointly marked by the target network identifier at a network level and the receiver identity at a node level;

establishing, by the relay node, a persistent connection between the target blockchain node and the relay node associated with the target blockchain node; and

transmitting, by the relay node, the blockchain message to the target blockchain node.

2. The computer-implemented method according to claim 1 , wherein the target network identifier of the target blockchain network is generated by the CA based on a genesis block maintained by the corresponding blockchain node.

3. The computer-implemented method according to claim 1 , wherein the identity information comprises at least one of a node identifier or a public key of the corresponding blockchain node.

4. The computer-implemented method according to claim 3 , comprising:

performing, based on the public key comprised in the second digital certificate, signature verification for the node identifier comprised in the second digital certificate.

5. The computer-implemented method according to claim 1 , comprising:

determining that the target blockchain node set corresponds to the set identifier,

wherein the target blockchain node is determined from the target blockchain node set.

6. The computer-implemented method according to claim 1 , wherein registering the blockchain node to the blockchain node set comprises:

registering the blockchain node to the blockchain node set indicated by the set identifier.

7. The computer-implemented method according to claim 1 , wherein the blockchain message comprises at least one of the following:

a block synchronization message, or a transaction synchronization message.

8. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

registering, by a relay node of a blockchain relay communication network in response to a registration request received from a blockchain node of a plurality of blockchain nodes, the blockchain node to a set indicated by the registration request, wherein a first digital certificate of a relay node corresponding to each blockchain node of the plurality of blockchain nodes is verified be to authentic based on a public key of a certification authority (CA) of the blockchain relay communication network;

in response to the first digital certificate of the relay node being verified, receiving, by the relay node, a second digital certificate of each blockchain node sent by each blockchain node of the plurality of blockchain nodes, wherein the second digital certificate of each blockchain node is issued by the CA of the blockchain relay communication network and comprises identity information of a corresponding blockchain node and a network identifier of a blockchain network that comprises the corresponding blockchain node;

verifying, by the relay node, that a digital signature of the second digital certificate is authentic based on the public key of the CA;

in response to verifying that the digital signature is authentic, recording, by the relay node, a mapping relationship between the identity information of the corresponding blockchain node and the network identifier of the blockchain network that comprises the corresponding blockchain node;

receiving, by the relay node from a sending blockchain node of the plurality of blockchain nodes, a blockchain message comprising a consensus message and including a set identifier of a target blockchain node set, wherein the target blockchain node set includes a set of blockchain nodes for performing consensus;

in response to receiving the blockchain message, determining, by the relay node, that

a) the sending blockchain node and a receiving blockchain node of the blockchain message are in a same blockchain network based on determining i) a receiver identity of the receiving blockchain node of the blockchain message and a target network identifier of a target blockchain network that comprises the sending blockchain node, and

b) the receiving blockchain node is a node included in the target blockchain node set for performing the consensus;

determining, by the relay node according to the mapping relationship, a target blockchain node whose identifier is jointly marked by the target network identifier at a network level and the receiver identity at a node level;

establishing, by the relay node, a persistent connection between the target blockchain node and the relay node associated with the target blockchain node; and

transmitting, by the relay node, the blockchain message to the target blockchain node.

9. The non-transitory, computer-readable medium according to claim 8 , wherein the target network identifier of the target blockchain network is generated by the CA based on a genesis block maintained by the corresponding blockchain node.

10. The non-transitory, computer-readable medium according to claim 8 , wherein the identity information comprises at least one of a node identifier or a public key of the corresponding blockchain node.

11. The non-transitory, computer-readable medium according to claim 10 , comprising operations of:

performing, based on the public key comprised in the second digital certificate, signature verification for the node identifier comprised in the second digital certificate.

12. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

registering, by a relay node of a blockchain relay communication network in response to a registration request received from a blockchain node of a plurality of blockchain nodes, the blockchain node to a set indicated by the registration request, wherein a first digital certificate of a relay node corresponding to each blockchain node of the plurality of blockchain nodes is verified be to authentic based on a public key of a certification authority (CA) of the blockchain relay communication network;

in response to the first digital certificate of the relay node being verified, receiving, by the relay node, a second digital certificate of each blockchain node sent by each blockchain node of the plurality of blockchain nodes, wherein the second digital certificate of each blockchain node is issued by the CA of the blockchain relay communication network and comprises identity information of a corresponding blockchain node and a network identifier of a blockchain network that comprises the corresponding blockchain node;

verifying, by the relay node, that a digital signature of the second digital certificate is authentic based on the public key of the CA;

in response to verifying that the digital signature is authentic, recording, by the relay node, a mapping relationship between the identity information of the corresponding blockchain node and the network identifier of the blockchain network that comprises the corresponding blockchain node;

receiving, by the relay node from a sending blockchain node of the plurality of blockchain nodes, a blockchain message comprising a consensus message and including a set identifier of a target blockchain node set, wherein the target blockchain node set includes a set of blockchain nodes for performing consensus;

in response to receiving the blockchain message, determining, by the relay node, that

a) the sending blockchain node and a receiving blockchain node of the blockchain message are in a same blockchain network based on determining i) a receiver identity of the receiving blockchain node of the blockchain message and ii) a target network identifier of a target blockchain network that comprises the sending blockchain node, and

b) the receiving blockchain node is a node included in the target blockchain node set for performing the consensus;

determining, by the relay node according to the mapping relationship, a target blockchain node whose identifier is jointly marked by the target network identifier at a network level and the receiver identity at a node level;

establishing, by the relay node, a persistent connection between the target blockchain node and the relay node associated with the target blockchain node; and

transmitting, by the relay node, the blockchain message to the target blockchain node.

13. The computer-implemented system according to claim 12 , wherein the target network identifier of the target blockchain network is generated by the CA based on a genesis block maintained by the corresponding blockchain node.

14. The computer-implemented system according to claim 12 , wherein the identity information comprises at least one of a node identifier or a public key of the corresponding blockchain node.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 20, 2025
From: ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD.
To: ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO., LTD.
Reel/Frame 070578/0163 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 25, 2021
From: SUN, HE; ZENG, CHAO; WANG, JIANG
To: ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 057288/0639 →
Priority Claims (1)
CN 202011019924.8 · Sep 25, 2020 · national
Continuity (1)
Related Publication 20210328812A1 · Oct 21, 2021
Cited By (1)
US 12,676,759