![Blockchain Developer's Guide](https://wfqqreader-1252317822.image.myqcloud.com/cover/88/36699088/b_36699088.jpg)
上QQ阅读APP看书,第一时间看更新
Block header
The block header of a block in Bitcoin comprises of metadata about the block. Consider the following:
- Bitcoin version: This field contains the Bitcoin version number.
- Previous block hash: The previous block's hash is required to create the new block's hash.
- Merkle root: This is the hash of the root of the Merkle tree of the current block's transactions.
- Timestamp: This is the timestamp of the block in UNIX.
- Mining difficulty: Mining is a crucial part of the blockchain ecosystem in Bitcoin. There is a difficulty target for mining, which is mentioned in the header.
- Nonce: Blockchain adds deviations in each block; these are known as nonce. Take a look at this diagram:
![](https://epubservercos.yuewen.com/E47F05/19470384001518506/epubprivate/OEBPS/Images/928ec25f-a762-4bb7-84bb-2d76ae404fcc.png?sign=1738899580-r5StiAj1hugq0YvcHAKPJJDLzVirvgsX-0-52948aafc436db3de84ffb6941556f46)
The formation of block headers and what comprises the Merkle root and the Merkle tree