Blockchain for Decision Makers
上QQ阅读APP看书,第一时间看更新

The missing variable

Eventually, one villager, named Dan, finds an appropriate number X. He tells everybody else that the number 12345, combined with the timestamp, the reference number, and the transactions return the output number, 0031993. As regards the rule, this number is a valid output because it starts with two leading zeros.

Because it is very easy to find the output when you know the input, every other villager can verify that number X, 12345, is a correct data that return a valid hash, that is, for the mathematical problem to be solved.

The output 0031993 is what we call the hash value of a block. It is the seal needed for the page and its transactions to remain valid. 

Once everyone has verified that 12345 is the correct number X (the nonce) that returns the output number 0031993 (the hash value) that respects the rule, Dan is allowed to display his first page on the wall, hence becoming the reference page: