Friday, 3 August 2018

Bitcoin Block Hashing Algorithm (Part III)


In previous two articles, Part (I) and Part (II) of the Bitcoin Block Hashing Algorithm [(Read more here) & (Read more here)], some basic hashing algorithm and mining process were illustrated.  This article will demonstrate the hash verification steps by using Python script.

Three examples will be selected from Bitcoin block explorer (Read more here).  The first example is the genesis block, and the other two are randomly selected.  The last example includes a loop code to mimic the actual nonce solving process.  It took about 7 hours to find the nonce, using a normal day-to-day laptop.  As such, one really needs a powerful system to be a miner!

Block #0 (Read more here)



Block #125989 (Read more here)


Block #522885 (Read more here)






No comments:

Post a Comment