Sunday, April 14, 2024
HomeBitcoinWhat am I doing unsuitable in calculating Merkle root of the block...

What am I doing unsuitable in calculating Merkle root of the block with solely 2 transactions (block #99997)?


I need to discover ways to calculate the Merkle root so I began from a easy instance, a block with solely 2 transactions (block #99997). Nonetheless, I bumped into an issue.

Mempool on-line block explorer says that the Merkle root of this block is: 5140e5972f672bf8e81bc189894c55a410723b095716eaeec845490aed785f0e.

Nonetheless, I get the totally different worth.

Two transactions are contained contained in the block #99997 and their TXID are:

I did the next steps:

  1. concatenation of transaction IDs
    (outcome:b86f5ef1da8ddbdb29ec269b535810ee61289eeac7bf2b2523b494551f03897c80c6f121c3e9fe0a59177e49874d8c703cbadee0700a782e4002e87d862373c6)
  2. SHA256 of the outcome from the step 1 (outcome:e08d8ecc5a02b113bea1e7e2786b8235ddb5ab6058910f30b4d966b30e484bda)
  3. SHA256 of the outcome from the step 2 (outcome:5ab58ee21a1ae7476d59e6b7ddb05a80e8b42a4bf5748e9c5db9eb860b2bd040)

As you may see I acquired the totally different worth for the Merkle root than the one introduced on the Mempool web site.

Mine: 5ab58ee21a1ae7476d59e6b7ddb05a80e8b42a4bf5748e9c5db9eb860b2bd040

Their: 5140e5972f672bf8e81bc189894c55a410723b095716eaeec845490aed785f0e

What am I doing unsuitable?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments