Proof-of-work is a powerful mechanism to reach consensus or agree upon a decision in a decentralized network like blockchain.
- Python Interpreter
This code can be run in your local machine by running the following commands in computer terminal:
python PoW.py
You can increase the time complexity of the computation by increasing integer value of the variable difficulty
. You can add your own transactions in mempool.json file.