Research Article

Sustainable Smart Industry: A Secure and Energy Efficient Consensus Mechanism for Artificial Intelligence Enabled Industrial Internet of Things

Algorithm 1

Honor delegates node selection algorithm.
The algorithm for selection of honor delegate node
Input: Voting results among N nodes, nonce
Output: honor delegates
Transmit (nonce, N)
Ni : Hash (hash (BlockHead), nonce)
while (Hash (hash (BlockHead), nonce) > delegates)
Calculate the vote of each delegate and sort them
if number of vote of first delegate ≥ second delegate
Select the first delegate as the honor delegate
If the votes of different delegates are same
Calculate the vote deviation percentage
Select small deviation percentage delegate as honor node
end if
end if