This project is a simple implementation of a blockchain in Python. The blockchain consists of blocks with a proof-of-work mechanism for mining and a basic consensus algorithm. Each block contains an index, timestamp, data, hash, and nonce.
simple_blockchain.py: Python script containing the blockchain implementation.README.md: Documentation providing an overview of the project.
- The script generates a blockchain with 10 blocks and prints details for each block.
- Modify the
blocks_to_addvariable insimple_blockchain.pyto adjust the number of blocks added to the blockchain.
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature-name - Submit a pull request.