Skip to content

About

A minimal implementation of blockchain in Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain

"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.

Features

  • Block creation and chaining
  • SHA-256 based hashing
  • Chain integrity validation
  • Simple, readable Python implementation
  • Docker support

Getting Started

Clone the repository:

git clone https://github.com/DrunkTrader/blockchain.git
cd blockchain

Install the dependencies:

pip install -r requirements.txt

Run the project:

python blockchain.py

Or with Docker:

docker build -t blockchain .
docker run blockchain

How It Works

Every 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.

Future Improvements

  • Transaction support
  • Proof of Work
  • Peer-to-peer networking
  • Digital signatures
  • Persistent storage
  • REST API
  • Unit tests

License

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."

About

A minimal implementation of blockchain in Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages