4

I was reading about how Bitcoin works from Satoshi's original paper. I had a query while going through the 7th paragraph. What is the difference between Root Hash and Block Hash? Isn't the block hash same as the hash of the root of its Merkle Tree? I have studied Merkle tree and understand how it works.

1

2 Answers 2

4

First, all transactions are hashed along a Merkle tree. The root of that tree is the Merkle root.

Then the block header is created with 6 fields: version number, the hash of the previous block, the time, the difficulty, and the Merkle root computed in the previous step.

Then that block header (which contains the Merkle root) is hashed, resulting in the block hash.

3
  • hashed* you mean? Thank You, solved my query. Feb 6, 2018 at 19:48
  • @VaradBhatnagar You can help the site by marking answers as accepted if they are correct and address the question so that the question does not remain as "unanswered".
    – Willtech
    Mar 9, 2018 at 11:55
  • genius answer :)
    – sharif2008
    Aug 2, 2018 at 5:09
1

Isn't the block hash same as the hash of the root of its Merkle Tree?

No

What is the difference between Root Hash and Block Hash?

The root hash is a 'Merkle Tree' of all the transactions in the block.

The block hash is a separate hash derived from data in the block header. Data in the block header includes the Merkle Tree hash, but also includes:

  • the block version number
  • the 256-bit hash of the previous block header
  • the current timestamp expressed as seconds since 1970-01-01T00:00 UTC
  • the current target in compact format
  • a random 32-bit 'nonce'.

Source: https://en.bitcoin.it/wiki/Block_hashing_algorithm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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