当前位置:网站首页>DAPP system customization of full chain hash game (scheme design)

DAPP system customization of full chain hash game (scheme design)

2022-06-24 20:40:00 InfoQ

Hash quiz game dapp System development ,hkkf5566, Kagavi , Full chain hash game customization , Introduction to play
Block header is an important part of a block . It mainly includes version information fields 、 Parent block hash value 、Merkle The root 、 Time stamp 、Demo、 Difficulty goals and nonce value .
(1) The version information identifies the version of transactions in the block and the referenced rules .
(2) The parent block hash value realizes the chain connection between block data .
(3)Merke The root value of the tree realizes the integration and induction of all transaction information in the block layer by layer and in pairs , Finally, all the information is contained in the block header through a hash value .
(4) Time stamp with UNIX Era time code , Namely self 1970 year 1 month 1 Japan 0 The total number of seconds elapsed from hour to moment .
(5) The difficulty target defines the difficulty value that the miner needs to prove the workload of mining , According to the excavation speed of the actual new block , The difficulty target value will be adjusted , Final guarantee average 10min- A new block .
(6)nonce It's a random value , The initial value is 0, A miner mining is to find a suitable nonce value , Make the hash value of the block header smaller than the difficulty target .

How hash is applied in blockchain ? In blockchain , Each block has a hash value of the previous block , The previous block is called the parent block of the current block .
Because each block has a hash value of the previous block , When modifying any data of the current block, the hash value of the block will change , This will have an impact on the previous block , Because it contains the address of the previous block .
such as , There are currently two blocks , One is the current block , One is the parent block . Address of parent block in current block , If you need to modify the data of the current block , You need to modify the parent blockchain . If there are only two blocks, it is better to modify the data , But in fact, there are many blocks on the blockchain .
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241532486582.html