This repository contains a simulation of the Bitcoin blockchain implemented in Python. It provides a simplified model of how transactions are processed, blocks are mined, and the overall functioning of the Bitcoin network.
- Simulates a network of nodes that validate and propagate transactions.
- Implements a basic proof-of-work algorithm for mining blocks.
- Provides a RESTful API for interacting with the blockchain.
- Python 3.10 or higher
- Required packages listed in
pyproject.toml
- Clone the repository:
git clone https://github.com/goamegah/bitcoin-blockchain.git
cd bitcoin-blockchain- Install the required packages:
uv syncTo run the simulation, execute the main script:
uv run python app.py- Inspired by the original Bitcoin whitepaper by Satoshi Nakamoto.
- Thanks to the open-source community for their contributions to blockchain technology.