Visualizing Cryptocurrency mining.

in #monero7 years ago (edited)

A little while back I built an experiment using Vue.js to show how cryptocurrency mining works in the browser.
You can try it @ https://bradoyler.github.io/xmr-miner/

Screen capture
gif

Read the source code @ https://github.com/bradoyler/xmr-miner

So...based on your CPU, you will have a number of threads and you can adjust your "power" by moving the slider left and right.
This will allow you to see how many hashes per second your CPU can handle without bogging down the visualization below.

I also included a reward estimation to show how long it would take to earn 1 Monero (XMR). This is all possible through a WebAssembly/asm.js implementation of the CryptoNight algorithm

I used the Coinhive backend for this experiment just to get something working/mining while using a free web hosting service (Github pages). But I'd like to enhance XMR-Miner so anyone could just input their wallet address + mining pool and start mining any Cryptonight based coins. In order to do this I'd need to setup some infrastructure, like a Stratum/Proxy.

As for the "Visual", I used D3 to create a force direct network graph that animates every time a "share is accepted". Which basically just means that your work is contributing to the next block being found.

This project was intended to be purely education and get people interested in learning about blockchain/crypto technology.

I shared this project on Hacker News and received ~60 comments and about 300 Github stars in 1 day. There were also enough people on the Miner that it held about 600 to 700 h/s for a couple hours. It was still a minuscule amount of coin, but it was pretty cool to see that much power going into my account.

Hoping to launch more experiments soon.

Cheers!

Sort:  

Congratulations @bradoyler, you have decided to take the next big step with your first post! The Steem Network Team wishes you a great time among this awesome community.


Thumbs up for Steem Network´s strategy

The proven road to boost your personal success in this amazing Steem Network

Do you already know that awesome content will get great profits by following these simple steps, that have been worked out by experts?

Congratulations @bradoyler! You received a personal award!

1 Year on Steemit

Click here to view your Board

Do not miss the last post from @steemitboard:

SteemWhales has officially moved to SteemitBoard Ranking
SteemitBoard - Witness Update

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @bradoyler! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 64222.70
ETH 2651.63
USDT 1.00
SBD 2.77