IP Library › Granted Patent US 11,799,630
Granted Patent B2
US 11,799,630 · App. 17/053,583 · Granted Oct 24, 2023

Method and device for blockchain nodes

Inventors: Yan Zhang (Anhui, CN); Yi Shi (Anhui, CN)
Assignee: HEFEI DAPPWORKS TECHNOLOGY CO., LTD.
H04L9/0643G16Y30/10H04L9/0825H04L9/3247H04L9/50H04L63/1416
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,799,630
App. No.
17/053,583
Granted
Oct 24, 2023
Kind
B2
Abstract

A method for blockchain nodes, the method including: sending security data of an Internet of Things system to other blockchain nodes, so that each blockchain node stores the security data in a blockchain database for that blockchain node; and obtaining one or more pieces of security data of the Internet of Things system from a blockchain database for a current blockchain node, and performing a corresponding operation on the Internet of Things system based on the obtained security data. There is also provided a device, a computer system and a computer readable medium for blockchain nodes.

Claims (63)

1. A method for blockchain nodes, the method comprising:

sending security data of an Internet of Things (IoT) system to other blockchain nodes, so that each such blockchain node stores the security data in a blockchain database for that blockchain node; and

obtaining one or more pieces of security data of the IoT system from a blockchain database for a current blockchain node, and performing a corresponding operation on the IoT system based on the obtained security data,

wherein the security data of the IoT system comprises a security rule and an operation log of a gateway device of the IoT system;

wherein sending the security data of the IoT system to other blockchain nodes comprises:

when the security rule of the gateway device of the IoT system is set, sending the set security rule to other blockchain nodes, wherein the security rule comprises one or more sub-rules, and

when the operation log is generated in the gateway device of the IoT system, sending the generated operation log to other blockchain nodes; and

wherein obtaining one or more pieces of security data of the IoT system from the blockchain database for the current blockchain node, and performing the corresponding operation on the IoT system based on the obtained security data comprises:

obtaining an operation log of the gateway device from the blockchain database for the current blockchain node,

determining whether a local operation log of the gateway device is consistent with the obtained operation log,

responsive to the local operation log of the gateway device being consistent with the obtained operation log, it is determined that a local security rule and the operation log of the gateway device have not been tampered with, so that the gateway device performs the corresponding operation on the IoT system according to the local security rule, and

responsive to the local operation log of the gateway device being not consistent with the obtained operation log, it is determined that the local security rule and the operation log of the gateway device have been tampered with, and obtaining a non-tampered security rule according to a difference between the local operation log and the obtained operation log, so that the gateway device performs the corresponding operation on the IoT system according to the non-tampered security rule; and

wherein the operation log of the gateway device comprises an operation log of at least one selected from: modifying, adding, and/or deleting the security rule.

2. The method of claim 1 , further comprising encrypting the security data according to a preset encrypting rule to obtain encrypted security data before sending the security data of the IoT system to other blockchain nodes;

wherein sending the security data of the IoT system to other blockchain nodes comprises sending the encrypted security data to other blockchain nodes, so that each such blockchain node stores the encrypted security data in the blockchain database for that blockchain node.

3. The method of claim 1 , further comprising:

generating a public key and a private key; and

generating a digital signature based on the security data and the private key before sending the security data of the IoT system to other blockchain nodes,

wherein sending the security data of the IoT system to other blockchain nodes comprises sending the security data together with the digital signature for the security data and the public key to other blockchain nodes, so that each such blockchain node verifies the security data based on the digital signature and the public key, and stores the verified security data in the blockchain database for that blockchain node.

4. The method of claim 3 , wherein generating the digital signature based on the security data and the private key comprises performing a hash calculation on a character string comprising the security data and the private key to obtain the digital signature.

5. The method of claim 1 , wherein obtaining one or more pieces of security data of the IoT system from the blockchain database for the current blockchain node, and performing the corresponding operation on the IoT system based on the obtained security data further comprises:

obtaining a security rule initially set by the gateway device from the blockchain database for the current blockchain node;

determining whether a local security rule of the gateway device is consistent with the obtained security rule;

responsive to the local security rule of the gateway device being consistent with the obtained security rule, it is determined that the local security rule of the gateway device has not been tampered with, so that the gateway device performs the corresponding operation on the IoT system according to the local security rule; and

responsive to the local security rule of the gateway device being not consistent with the obtained security rule, it is determined that the local security rule of the gateway device has been tampered with, so that the gateway device performs the corresponding operation on the IoT system according to the obtained security rule.

6. The method of claim 1 , wherein:

sending the security data of the IoT system to other blockchain nodes, so that each such blockchain node stores the security data in the blockchain database for that blockchain node comprises sending the security data together with identification information of the gateway device to other blockchain nodes, so that each such blockchain node stores the security data and the identification information of the gateway device in the blockchain database for that blockchain node; and

obtaining one or more pieces of security data of the IoT system from the blockchain database for a current blockchain node comprises searching for and reading corresponding one or more pieces of security data of the identification information of the gateway device from the blockchain database for the current blockchain node according to the identification information of the gateway device.

7. The method of claim 1 , wherein:

the current blockchain node is the gateway device of the IoT system, and/or

the gateway device of the IoT system is configured for performing at least one selected from: local monitoring of the IoT system, network protocol conversion of the IoT system, and/or edge computing of the IoT system.

8. A computer system, comprising a memory, a processor system, and a computer program stored on the memory, wherein the program is configured to, upon execution of the program, cause the processor system to implement the method of claim 1 .

9. A non-transitory computer readable medium, storing executable instructions, the instructions, when executed by a processor system, configured to cause the processor system to at least:

send security data of an Internet of Things (IoT) system to other blockchain nodes, so that each such blockchain node stores the security data in a blockchain database for that blockchain node; and

obtain one or more pieces of security data of the IoT system from a blockchain database for a current blockchain node, and perform a corresponding operation on the IoT system based on the obtained security data,

wherein the security data of the IoT system comprises a security rule and an operation log of a gateway device of the IoT system;

wherein the instructions configured to cause the processor system to send the security data of the IoT system to other blockchain nodes are further configured to cause the processor system to:

when the security rule of the gateway device of the IoT system is set, send the set security rule to other blockchain nodes, wherein the security rule comprises one or more sub-rules, and

when the operation log is generated in the gateway device of the IoT system, send the generated operation log to other blockchain nodes; and

wherein the instructions configured to cause processor system to obtain one or more pieces of security data of the IoT system from the blockchain database for the current blockchain node, and perform of the corresponding operation on the IoT system based on the obtained security data are further configured to cause the processor system to:

obtain an operation log of the gateway device from the blockchain database for the current blockchain node,

determine whether a local operation log of the gateway device is consistent with the obtained operation log,

responsive to the local operation log of the gateway device being consistent with the obtained operation log, determine that a local security rule and the operation log of the gateway device have not been tampered with, so that the gateway device performs the corresponding operation on the IoT system according to the local security rule, and

responsive to the local operation log of the gateway device being not consistent with the obtained operation log, determine that the local security rule and the operation log of the gateway device have been tampered with, and obtain a non-tampered security rule according to a difference between the local operation log and the obtained operation log, so that the gateway device performs the corresponding operation on the IoT system according to the non-tampered security rule; and

wherein the operation log of the gateway device comprises an operation log of at least one selected from: modifying, adding, and/or deleting the security rule.

10. The medium of claim 9 , wherein the instructions are further configured to cause the processor system to encrypt the security data according to a preset encrypting rule to obtain encrypted security data before sending of the security data of the IoT system to other blockchain nodes;

wherein the instructions configured to cause the processor system to send the security data of the IoT system to other blockchain nodes are further configured to cause the processor system to send the encrypted security data to other blockchain nodes, so that each such blockchain node stores the encrypted security data in the blockchain database for that blockchain node.

11. The medium of claim 9 , wherein the instructions are further configured to cause the processor system to:

generate a public key and a private key; and

generate a digital signature based on the security data and the private key before sending the security data of the IoT system to other blockchain nodes,

wherein the instructions configured to cause the processor system to send the security data of the IoT system to other blockchain nodes are further configured to cause the processor system to send the security data together with the digital signature for the security data and the public key to other blockchain nodes, so that each such blockchain node verifies the security data based on the digital signature and the public key, and stores the verified security data in the blockchain database for that blockchain node.

12. The medium of claim 11 , wherein the instructions configured to cause the processor system to generate the digital signature based on the security data and the private key are further configured to cause the processor system to perform a hash calculation on a character string comprising the security data and the private key to obtain the digital signature.

13. The medium of claim 9 , wherein the instructions configured to cause the processor system to obtain one or more pieces of security data of the IoT system from the blockchain database for the current blockchain node, and perform the corresponding operation on the IoT system based on the obtained security data are further configured to cause the processor system to:

obtain a security rule initially set by the gateway device from the blockchain database for the current blockchain node;

determine whether a local security rule of the gateway device is consistent with the obtained security rule;

responsive to the local security rule of the gateway device being consistent with the obtained security rule, determine that the local security rule of the gateway device has not been tampered with, so that the gateway device performs the corresponding operation on the IoT system according to the local security rule; and

responsive to the local security rule of the gateway device being not consistent with the obtained security rule, determine that the local security rule of the gateway device has been tampered with, so that the gateway device performs the corresponding operation on the IoT system according to the obtained security rule.

14. The medium of claim 9 , wherein:

the instructions configured to cause the processor system to send the security data of the IoT system to other blockchain nodes, so that each such blockchain node stores the security data in the blockchain database for that blockchain node are further configured to cause the processor system to send the security data together with identification information of the gateway device to other blockchain nodes, so that each such blockchain node stores the security data and the identification information of the gateway device in the blockchain database for that blockchain node; and

the instructions configured to cause the processor system to obtain one or more pieces of security data of the IoT system from the blockchain database for a current blockchain node are further configured to cause the processor system to search for and read corresponding one or more pieces of security data of the identification information of the gateway device from the blockchain database for the current blockchain node according to the identification information of the gateway device.

15. The medium of claim 9 , wherein:

the current blockchain node is the gateway device of the IoT system, and/or

the gateway device of the IoT system is configured for performing at least one selected from: local monitoring of the IoT system, network protocol conversion of the IoT system, and/or edge computing of the IoT system.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 6, 2020
From: ZHANG, YAN; SHI, YI
To: HEFEI DAPPWORKS TECHNOLOGY CO., LTD.
Reel/Frame 054303/0087 →
Continuity (1)
Related Publication 20210233673A1 · Jul 29, 2021
Cited By (7)
US 12,393,720 US 12,395,331 US 12,401,630 US 12,445,415 US 12,511,379 US 12,580,740 US 12,602,497