Simple SHA-256 miner · v0 Python · v1 C++ · v2 Rust
A SHA-256 miner that got about 42 times faster
A small program that guesses numbers until a hash starts with letters we pick. Two illustrated articles explain it. The code and every benchmark log are public.
-
Article · step by step
We made our SHA-256 miner about 42 times faster
C++ to Rust, then one patch to the hashing library. Pictures first, then five short steps and every run.
-
Article · with a calculator
What it costs to find a SHA-256 prefix
Each extra character makes the search 64 times longer, or 32 times for a letter when case is ignored.
Code and logs
- The repository: v0 Python, v1 C++, v2 Rust.
- v2 README: how to run it and every measurement.
- Raw log of the C++ against Rust test.
The same articles are on chimericlabs.xyz: the 42 times article and the cost article. All numbers come from short tests on one shared computer.