diff --git a/README.md b/README.md index 52fbdb9..1fcc173 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,34 @@ -# SHA-256 Miner (From Scratch, Python Starter) +# SHA-256 Miner (From Scratch, Python + C) + +## C Rewrite (Modular) + +This repository now includes a modular C implementation that mirrors the Python module split: + +- `config.c/.h` + `miner.conf` +- `rpc.c/.h` +- `block_builder.c/.h` +- `miner.c/.h` +- `mining_loop.c/.h` +- `launcher.c` +- `main.c` + +Build: + +```bash +make +``` + +Run single worker: + +```bash +./miner --config miner.conf +``` + +Run multiprocess launcher: + +```bash +./launcher --config miner.conf -n 4 +``` A clean, production-minded **starting point** for building SHA-256 miners from scratch.