Friday, 25 May 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 were selected from Bitcoin block explorer (Read more here).  The first example was the genesis block, and the other two were randomly selected.  The last example included a loop code to mimic the actual nonce solving process.  It took about 7 hours to find the nonce, by using a normal day-to-day laptop.  As such, one really needs a powerful system in order to be a miner!

Block #0 (Read more here)




Block #125989 (Read more here)




Block #522885 (Read more here)



No comments:

Post a Comment