This script is for educational-only purposes and is not intended for production.
It performs a proof-of-work's simulation of genesis block given:
dificulty_hex
:0x000000001
;target
:0x00000000ffff0000000000000000000000000000000000000000000000000000
prefix
:Hello Wolrd!
nonce
: it receive an increment until find a value less thantarget
;
git clone https://github.com/qlrd/grind-rust-simulator
cargo build
./target/debug/grind-rust-simulator
This will increase CPU usage. For best performance, close all unused programs.
So far, tested on (with 16 threads):
OS | Processor | CPU usage | found hash in (s) | nonce | hash |
---|---|---|---|---|---|
? | 12th gen i5 | ?% |
239.49s |
1480740277 | 00000000b4d3...86b1740 |
macOS M2 | arm64 | 75-80% |
2942.25s |
1480740277 | 00000000b4d3...86b1740 |