This is the blockchain implementation, written in Python. It includes functions for adding transactions, mining blocks, verifying the chain and more.
- Initializing our blockchain list
- Mining reward of 10 coins
- Genesis block with empty previous hash
- Adding transactions
- Mining blocks
- Verifying the chain
- Getting balance of participants
- Manipulating the chain
- Python 3.6 or higher
To use this code, simply run it in your Python interpreter. You will be prompted to enter a choice from the list of options. Depending on your choice, you can add transactions, mine blocks, output the blockchain blocks, output participants, check transaction validity, manipulate the chain, or quit.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.