A basic blockchain implementation in Python with Proof of Work consensus.
SimplePyBlockchain is a basic blockchain project implemented in Python. It demonstrates the concept of a blockchain and uses a simple Proof of Work (PoW) consensus mechanism. This project is intended for educational purposes and to help you understand the basic principles of a blockchain.
- Python 3.x
The project structure is as follows:
blockchain.py
: Contains the implementation of the Block and Blockchain classes, along with the PoW algorithm.main.py
: A simple script demonstrating how to create and use the blockchain.
-
Clone the repository:
git clone https://github.com/devincapriola/SimplePyBlockchain.git
-
Navigate to the project directory:
cd SimplePyBlockchain
-
Run It
python main.py
This will create a basic blockchain with two sample transactions.
Contributions are welcome! If you'd like to contribute to this project, feel free to open an issue or submit a pull request.