Skip to content

Aerospace-prog/Builded-My-Own-BlockChain-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Simple Blockchain System In (Python)

This project demonstrates the fundamentals of blockchain architecture by implementing a simple blockchain in Python from scratch β€” no frameworks, just logic.

πŸš€ Features

  • 🧱 Custom Blockchain with block structure, hashes, and chaining logic.
  • ⛏️ Proof-of-Work algorithm to simulate mining difficulty and validation.
  • πŸ”’ Transaction System with support for sender, receiver, and balances.
  • 🧠 Smart State Logic that maintains user balances and prevents double-spending.
  • πŸ“ Chain Validation and block integrity check on each new addition.
  • πŸ“œ Simple CLI Interface to simulate block creation and network behavior.

How to Run

python3 blockchain.py

πŸ› οΈ Tech Stack

  • Language: Python 3
  • Hashing: SHA-256 (hashlib)
  • Logic: Pure OOP and Functional Design

🧠 Concepts Covered

  • Blockchain fundamentals
  • Hashing with SHA-256
  • Proof-of-Work difficulty
  • Merkle chain and block linking
  • Transaction verification
  • Final state & ledger maintenance

Sample Output

New Block Received; Checking... Block accepted. Chain length: 8 Final State: {'Alice': 76, 'Bob': 24}

Author

Aerospace

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages