How Bitcoin Mining works.

Calculating the Hash.

Hands-On (Parody)

header =
“00000020” + “66720b99e07d284bd4fe67ff8c49a5db1dd8514fcdab61000000000000000000” + “7829844f4c3a41a537b3131ca992643eaa9d093b2383e4cdc060ad7dc5481187” + “c7f5d74d” + “c1910018” + “42a14695”

Header hash= Sha256(sha256(“0000002066720b99e07d284bd4fe67ff8c49a5db1dd8514fcdab610000000000000000007829844f4c3a41a537b3131ca992643eaa9d093b2383e4cdc060ad7dc5481187c7f5d74dc191001842a14695”))
The miner then compares this hash with the target and if it is less than the target he is good to go else he increments the nonce value and hashes the block header again.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store