0

I want to verify several random blocks and check if there was prove of work really found. I need it for some reasearch reasons. I have downloaded the blocks historical info and there are only hashes with number of zeroes in the block headers in the ladder I have downloded. This means the prove of work was alredy found. Is there any way to get initial block hash and the prove of work which was found, so I could calculate their hash by myself?

There is an exaple: SHA256 hash of the current block hash = 000000000000000000044F29DB8B3388FD4E4CF400420B2AA8DA008E9891250B

How can I find what was the initial hash number and prove of work?

Thank you in advance.

1
  • you cant verify the proof-of-work with only the block hash. you also need the bits part of the header
    – Antoni
    Commented Feb 4, 2022 at 16:18

1 Answer 1

1

How can I find what was the initial hash number ...

There's no such thing. Every miner assembles their own choice of transactions and makes their own choice of initial nonce value. There's no way to find out which combinations and values each miner tried first - they simply discard ones that don't hash less than the target, there's no record of failed attempts.

... and prove of work?

The hash being less than the target appropriate for that block height is the proof of work. Your example number is the proof of work for that block.

To validate that proof you just need to recalculate the hash and see that it agrees with the one you posted and then calculate the current network target for that block height based on prior block targets and times.


Useful links

1
  • Thank so much for your fast response. Can you please enlight me little bit further? How can I recalculate the hash using the historical info of a block? If it is possible of course. Thank you in advance for your answers.
    – Yuri
    Commented Feb 6, 2022 at 13:41

Your Answer

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

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