Visualize Bitcoin Hashing



According to,

BitCoin uses the SHA-256 hash algorithm to generate verifiably "random" numbers in a way that requires a predictable amount of CPU effort. Generating a SHA-256 hash with a value less than the current target solves a block and wins you some coins.

Here is an example for web logs;

Obviously solving the hash takes many iterations. I'm curious if there anything that currently lets you visualize a miner hashing?

Digital fire

Posted 2015-05-08T15:25:40.323

Reputation: 153



I got linked this question.

I made a tool which includes a component that allows one to simulate mining:

It's not entirely accurate; it doesn't support BIP 34, so the block height is not reflected in the coinbase tx, and it's still got some bugs. Currently in alpha. But it can give you some pointers.

It'll construct a block on top of the tip of the current best chain, with a coinbase transaction and nothing else, then start hashing at 4 hashes/sec, showing every failed attempt (which at this hashrate, is likely to be all of them).


Posted 2015-05-08T15:25:40.323

Reputation: 116

1Wow, this is very pretty! – Nick ODell – 2015-05-09T17:20:11.083

This is a great start! Do you have an open repo of your code? – Digital fire – 2015-05-12T14:06:35.793


Yep. Any help in testing or code contributions would be greatly appreciated, as would publicly hosting the project on top of a node. I was away for several weeks and haven't had a chance to work on the project further, I intend to pick up the pace in the coming weeks and get the project out of alpha/beta. Code here:

– JornC – 2015-06-08T13:00:33.280



Posted 2015-05-08T15:25:40.323

Reputation: 3 965


Mining Bitcoin with Excel:


Mars Robertson

Posted 2015-05-08T15:25:40.323

Reputation: 309

This answer would be much improved if you updated it to describe the video in a little more detail. – Highly Irregular – 2017-11-06T22:24:52.580

@HighlyIrregular Edit the answer yourself. – Mars Robertson – 2017-11-07T06:13:29.490