1

What the title says above, but for more clarification I am asking whether the hash of the previous block header is part of what is hashed to create the header of the new block? Like what are all the components that are hashed together to get the block header hash?

Thanks.

3

The block header is 80 bytes:

  • Version number: 4 bytes
  • Previous block header hash: 32 bytes
  • Merkle root: 32 bytes
  • Timestamp: 4 bytes
  • Bits: 4 bytes
  • Nonce: 4 bytes

The merkle tree hashes all the transactions in the block, the bits field is used to compute the target hash for the header, finally, the nonce is used as a counter to generate new block headers from a given merkle tree.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.