Implementation of a simple blockchain in python made as the final project of the Distributed Systems course in the Faculty of Engineering, Alexandria University.
- Clone repo and
cd
into the project directory - Install requirements
pip install -r requirements.txt
- Run
main.py
with flag-h
for info on available commands and flags:$ python main.py -h
- Configure peers file to include addresses of potential peers
- Run client-server
Example for running a miner and client with a proof of work consensus:
$ python main.py miner -p 9980 -c pow
$ python main.py client -p 9980 -c pow