AiBitcoin is a learning‑friendly prototype. It favors readable Python, straightforward scripts, and honest documentation over buzzwords. If you want to understand the moving parts—and tinker with AI hooks for fraud/anomaly detection—this is for you.
MIT Licensed • Python • Works on macOS, Linux, and Windows
# Quick demo
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Generate wallet keys
python scripts/generate_keys.py
# Start a local node
python scripts/deploy_node.py
# Create a transaction (example)
# from src.wallet.transactions import create_transaction
# tx = create_transaction(sender, recipient, amount, private_key)
Clear folder structure, small modules, and comments that explain trade‑offs. You should feel comfortable reading the code and changing it.
Not a production coin. It’s a teaching project that shows the pieces of a chain plus optional AI checks for anomalies.
Swap consensus, try different difficulty targets, or plug in your own model. The modules are intentionally decoupled.
A tamper‑evident chain with a simple consensus loop that’s easy to trace.
Hooks for anomaly/fraud detection so you can experiment with model‑based alerts.
Lightweight scripts for key generation, node startup, and test transactions.
Small functions, descriptive names, and docstrings where you need them most.
Separate modules for chain, wallet, networking, and scripts to help you focus.
Fork it, learn from it, and ship your own ideas.
git clone https://github.com/balajibenhur/AiBitcoin.gitcd AiBitcoinpip install -r requirements.txtpython scripts/generate_keys.pypython scripts/deploy_node.pyscripts/ # helper scripts (keys, node deploy)
src/ # core blockchain, wallet, networking modules
tests/ # unit tests
README.md # documentation
requirements.txt
“I wanted a project I could read in a weekend and extend the next week. AiBitcoin hit that balance—small, honest, and hackable.”