By deploying edge servers around devices, edge computing brings computing resources far away from the cloud center close to the Internet of Things (IoT), which reduces latency and promotes the rapid development of IoT. Since edge servers and devices (hereafter referred to as NODEs) are highly scattered, blockchain is becoming one of the most promising solutions to enhance security issues for IoT. In the blockchain, a consensus mechanism determines how to achieve an agreement among nodes, hence it is an essential element for the operation and efficiency of the blockchain. However, due to the ex...