How to check two hashes are equal using block data and the nonce?


This is my first question on this community (the 100 points were just given to me by the site). The information given is from a block i found looking from the docs api. What am supposed to do with the nonce and the hashes in this block to check SHA256(A)==SHA256(B+nonce) or is this terribly wrong and the data here cannot give me that answer.

    "tx":[--Array of Transactions--]

George Pamfilis

Posted 2017-07-11T18:06:15.933

Reputation: 103



I wrote a python program to calculate the block hash from the version, prev_block, mrkl_root, timestamp, bits, and nonce. You can see it here.

Nick ODell

Posted 2017-07-11T18:06:15.933

Reputation: 27 521