"People often mistake complexity for intelligence. A blockchain is neither. It's simply a ledger with an exceptional memory."
A minimal blockchain implementation in Python, built to understand the fundamentals rather than hide them behind abstractions. This project demonstrates how cryptographic hashes link blocks together, making the chain resistant to tampering while remaining simple enough to explore and extend.
- Block creation and chaining
- SHA-256 based hashing
- Chain integrity validation
- Simple, readable Python implementation
- Docker support
Clone the repository:
git clone https://github.com/DrunkTrader/blockchain.git
cd blockchainInstall the dependencies:
pip install -r requirements.txtRun the project:
python blockchain.pyOr with Docker:
docker build -t blockchain .
docker run blockchainEvery block carries two things: its own data and the hash of the block before it. Change a single character anywhere in the chain, and every block that follows immediately tells a different story. That's the elegance of blockchain—not that it's impossible to change, but that it becomes impossible to change without being noticed.
- Transaction support
- Proof of Work
- Peer-to-peer networking
- Digital signatures
- Persistent storage
- REST API
- Unit tests
This project is open source. Feel free to explore, modify, and build upon it.
"The trick isn't making people trust the system. It's building a system that doesn't ask them to."