Method and apparatus for selecting distributed consensus node based on proof of nonce
View Patent ↗A method for selecting a consensus node in an apparatus for generating a blockchain includes reading a nonce from the nonce chain of a node, performing an operation on the read nonce and previous height information, and comparing the result of the operation with a reference value in order to select the node as a consensus node.
1. A method for verifying a consensus node in an apparatus for generating a blockchain, comprising:
receiving a nonce value, a height of a new block, and identify information of a first node from the first node, wherein the first node is selected as the consensus node;
retrieving a final nonce value and a start height of the first node from an elite pool of a second node using the identity information of the first node, the elite pool storing final nonce values and start heights of a plurality of nodes including the first node;
subtracting the start height from the height of the new block;
hashing the nonce value as many times as a result of the subtraction; and
comparing a result of the hashing with the final nonce value in order to verify whether the first node is eligible to serve as the consensus node.
2. The method of claim 1 , wherein, when the result of hashing is equal to the final nonce value, a block generation permission of the first node is verified.
3. The method of claim 1 , wherein, when the result of hashing is not equal to the final nonce value, the first node is demoted when generating a block or using the blockchain.