| 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 |

|
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.
|