cppminer — Standalone C++ CPU minerHi BitcoinTalk community!
I want to share my open-source project —
cppminer. It is a high-performance, standalone C++ CPU miner for scrypt, SHA-256d, Lyra2 Webchain, and RandomX.
It automatically detects your CPU features at runtime, picks the fastest SIMD backend available (SSE2, AVX2, AVX-512, SHA-NI), and runs reference-vector self-tests before mining.
GitHub Repository (Source Code): https://github.com/RuslanSemchenko/cppminerLicense: MIT
✨ Key Features:• Four mining algorithms behind one binary (-a / --algo)
• Runtime CPU feature detection & SIMD dispatch (SSE2, AVX2, AVX-512, SHA-NI)
• RandomX: JIT, hardware AES, Argon2 SSSE3/AVX2, full dataset & large pages support
• Built-in Stratum client for scrypt / sha256d; dedicated JSON-RPC clients for MintMe/RandomX pools
• Offline --benchmark mode with per-backend SIMD comparison
• Built with modern tech stack: C++23, Clang 22+, CMake, libcurl, OpenSSL
💻 Supported Algorithms & Protocols:•
scrypt — Stratum (Bitcoin/Litecoin style)
•
sha256d — Stratum (Bitcoin-style 80-byte block header)
•
lyra2web — Webchain JSON-RPC (MintMe Webchain)
•
randomx — RandomX JSON-RPC (Monero-style, light/full dataset)
🚀 Quick Start (Benchmark):You can test your CPU hashrate offline without connecting to any pool:
`./build/cppminer --benchmark --bench-seconds=3`
🛠 How to build:Full instructions for Linux, macOS (Clang 22 / Homebrew), and Windows (clang-cl + vcpkg) are available in the GitHub README.
Feel free to test it, report bugs, and share your benchmarks in this thread! Feedback is highly appreciated.
More updates soon