US 12,355,880 B2
Consensus method used for miner node in blockchain system and blockchain system
Qiang Cheng, Guangdong (CN)
Assigned to SHENZHEN RED BRICK TECHNOLOGY CO., LTD., Shenzhen (CN)
Filed by SHENZHEN RED BRICK TECHNOLOGY CO., LTD., Shenzhen (CN)
Filed on Jan. 8, 2021, as Appl. No. 17/144,353.
Application 17/144,353 is a continuation in part of application No. PCT/CN2019/090356, filed on Jun. 6, 2019.
Claims priority of application No. 201810751530.8 (CN), filed on Jul. 10, 2018.
Prior Publication US 2021/0176058 A1, Jun. 10, 2021
Int. Cl. H04L 29/06 (2006.01); G06F 16/27 (2019.01); G06Q 20/06 (2012.01); G06Q 20/36 (2012.01); H04L 9/08 (2006.01); H04L 9/30 (2006.01); H04L 9/32 (2006.01); H04L 9/00 (2022.01)
CPC H04L 9/30 (2013.01) [G06F 16/27 (2019.01); G06Q 20/065 (2013.01); G06Q 20/3678 (2013.01); H04L 9/0894 (2013.01); H04L 9/3236 (2013.01); H04L 9/3247 (2013.01); H04L 9/50 (2022.05)] 17 Claims
OG exemplary drawing
 
1. A consensus method, applicable to a miner node in a blockchain system, wherein the consensus method is block based and replaces a PoW consensus with a non-energy-consuming PoET consensus algorithm and the miner node is associated with a trusted execution environment, and the method comprises:
acquiring a lower-limit accumulative unused duration;
executing, in the trusted execution environment associated with the miner node, a bookkeeping right determination operation, comprising: determining a current accumulative unused duration for the miner node; determining whether the current accumulative unused duration is more than the lower-limit accumulative unused duration; determining, in response to a determination that the current accumulative unused duration is more than the lower-limit accumulative unused duration, that the miner node has won a bookkeeping right; and updating the current accumulative unused duration by using a difference between the current accumulative unused duration and the lower-limit accumulative unused duration;
wherein making the miner node associated with the trusted execution environment comprising:
providing the trusted execution environment associated with the miner node in the miner node; or
providing the trusted execution environment associated with the miner node in other electronic devices connected to the miner node over a network, wherein the miner node interacts with its associated trusted execution environment through a message communication mechanism;
wherein the bookkeeping right determination operation further comprises:
determining, in response to a determination that the miner node has won the bookkeeping right, whether to adjust the lower-limit accumulative unused duration according to a block where the miner node has won the bookkeeping right;
adjusting, in response to a determination to adjust the lower-limit accumulative unused duration, the lower-limit accumulative unused duration by performing operations of: determining an adjusted lower-limit accumulative unused duration according to the lower-limit accumulative unused duration, a real adjustment cycle duration, and an expected adjustment cycle duration, wherein the real adjustment cycle duration is a duration between a timing of generation of the block where the miner node has won the bookkeeping right and a timing of generation of a block corresponding to a previous adjustment of the lower-limit accumulative unused duration in a blockchain of the miner node; and updating the lower-limit accumulative unused duration to the adjusted lower-limit accumulative unused duration.