Method and device for blockchain nodes
AssigneeHefei Dappworks Technology Co., Ltd.
InventorsYan Zhang, Yi Shi
Life of this patent
Estimating the term…
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.
Claims15
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.
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.
Dependencies are inferred from the claim text.