Info
We hash the decimal digits of the candidate input using the following basic hash function.
Start with s = 314.
Then, for each digit d:
s = (s + 457·d) mod 1000;
s = (s + 29) mod 1000;
if d is even → rotate-left the 3 digits; if odd → rotate-right.
The check is:
hash(blockHeader + luckyNumber) < target.