Algorithm-Arena / weekly-challenge-14-lightbulb-coin

0 stars 0 forks source link

Submission - Bulb Coin Playground #1

Open nikpundik opened 5 months ago

nikpundik commented 5 months ago

Bulb Coin Playground

This was an interesting one; I've never had the chance to take a look at how to implement a simple blockchain. This was a good opportunity to try it. MD5 is used as the hash function, and peers can send transactions to the network that can later be mined into a block stored in the blockchain. Transactions are signed with a PoC private/public key pair. All this lives client-side in the browser. I implemented a small playground in React to simulate sending transactions and mining them.

How to test it

Source

https://codesandbox.io/p/sandbox/bulb-coin-2rgggh

Video

https://github.com/Algorithm-Arena/weekly-challenge-14-lightbulb-coin/assets/4772224/650268b0-2bc2-4010-ad93-63cb7b114d3d