Blockchain built on a Single Node with Python 3.
An attempt to simulate the Bitcoin Blockchain as much as I can.
More to come in the README. If you're curious run it :)
python blockchain.py
python 3
"Blockchain" is on a simulated "Internet".
"Nodes" are "connected" on the "Internet".
The Internet bootstraps all connections and builds a genesis block.
"Nodes" are running "Programs" like "Miners".
Catch : One Node behaves as Switch that "broadcasts" packets to all nodes on the internet. Yes this blockchain has a SPOF, deal with it 😎
Thanks to the Repo's and Resources below:
- https://github.com/pirate/mesh-networking
- http://www.jenitennison.com/2015/05/21/blockchain.html
- http://www.vamsitalkstech.com/?p=1451
- https://medium.com/@micheledaliessi/how-does-the-blockchain-work-98c8cd01d2ae
- https://www.youtube.com/watch?v=_160oMzblY8
- https://www.youtube.com/watch?v=li3rfBAP_fE