Explainer · · 19 min read

We made our SHA-256 miner about 42 times faster

The miner guesses text until the hash starts with letters we pick. The first version, in C++, made about 2.6 million guesses a second. The Rust version makes about 109 million. Two steps got it there: a rewrite in Rust on a SIMD hashing library, then a patch of ours on top. Pictures first, then five short steps.

Which step gave what

  • C++2.62
  • Rust71.55
  • Rust + patch109.1
  1. C++ to Rust, on a SIMD library: about 27 times. That took the miner from 2.62 to 71.55 MH/s (millions of hashes per second). Eight lanes are only part of it. The C++ draft, a 59-line first version, formats each guess as text with snprintf and makes one separate OpenSSL SHA-256 call for it, one guess at a time. The Rust miner, in mine_range() (linked at its stock version, before the patch in the next item), does it differently in four ways. It builds the gensys: part of the text once per chunk (line 104). It steps the decimal counter up by one per guess instead of formatting each number (line 115). It works through 128 guesses at a time (line 96). And it hands each batch to the open-source spool-labs/sha256 library, which hashes eight guesses at once with AVX2 (line 139). Eight lanes can, in theory, explain at most about 8 of the 27 times. We did not measure how much each of the other changes gave, so the rest of the 27 is not broken down. We are not crediting the language: we never gave the C++ draft the same changes, so this page cannot say how much, if any, came from Rust itself.
  2. Our patch on top: about 1.5 times. The patch makes the library return only the start of each hash. That took it from 71.55 to 108.61 MH/s in a paired test, the same 1.52 that pull request #4 reports.

Together: 2.62 to 109.1 MH/s, 41.6 times in a direct paired test of the C++ and Rust programs. The 27 and the 1.5 multiply to about the same figure, but the 71.55 comes from a separate test the day before, so treat the split as approximate. The patched figure is 109.1 in the C++ test and 108.61 in the patch test: separate runs of the same build. MH/s, axis 0 to 120. Six pinned threads on one shared i7-8700. Every run is in step 5.

Eight guesses per operation

01234567
One AVX2 operation across eight 32-bit lanes

Each square is one guess, gensys:0 to gensys:7. The library we started from already did this. See step 3.

Keep 32 bits: a cheap filter

The filter is only a first pass. Every winner gets a full check, so no false hit is reported. See step 4.

Our patch alone: about 1.5 times faster

  • Stock71.55
  • Patched108.61

Median of three paired 10 s runs, in MH/s (millions of hashes per second). Axis 0 to 120. Paired ratio 1.52. Six pinned threads, one shared i7-8700. All runs are in step 5.

Read the limits first. These are short tests on one shared, busy computer. It is not a controlled benchmark. Expect no gain on chips with SHA-NI or AVX-512. We did not measure which part of our patch explains its gain. The 42 times compares two programs on this one AVX2 computer without SHA-NI. The C++ miner uses OpenSSL, which may use SHA-NI where a chip has it, so the 42 times could be smaller there. The C++ build flags were ours. The change is Proposed, not merged as spool-labs/sha256 pull request #4.

Is the prefix fixed at six letters? No. The miner takes 1 to 10 Base64 characters, or 1 to 16 hex characters (target()). “gensys” is only our example phrase. Our example prefix, “gensy”, has five characters.

The fast filter looks at up to 32 bits. The full check looks at the whole prefix. The ruler in step 4 shows both. For how long your own prefix would take, see how hard the search is.

Five steps, about 16 minutes

  1. The miner: a loop of guesses, hashed and checked against a prefix. 3 min.
  2. SHA-256: a 256-bit fingerprint, with no shortcut backwards. 2 min.
  3. AVX2: eight 32-bit lanes in one register. 3 min.
  4. What changed: keep 32 bits as a filter, re-hash the survivors. 4 min.
  5. The tests: how much faster, and how far to trust it. 4 min.

After step 5: how hard the search is, with three pictures and a calculator.

Step 1 of 5 · 3 min

The miner is a loop of guesses

It makes a guess, hashes it, and checks the start of the result. It repeats until one matches. This finds a real hash that happens to start that way. It never edits a hash, and it is not Bitcoin mining.[1]

  1. GuessA phrase plus a counter: gensys:60237861.
  2. HashSHA-256 turns it into a 256-bit digest, a fingerprint of 32 bytes. It is a fixed recipe with no key. In hex it begins 81e9ecc9….
  3. SpellBase64 is a way to spell bytes with letters, digits, + and /. It uses 6 bits per character: gensyT8AF4HH….
  4. CompareDoes the text start with the prefix, the first characters we want, here gensy? Yes: stop and print it. No: add 1 to the counter and go back to 1.

Here are two real passes.

  • NOgensys:60237860 → CavohN5mTw51SHkP+fQpSRLWfJbB87B0razFJM55G3Y=. It starts with Cavoh, not gensy. The miner moves on.
  • YESgensys:60237861 → gensyT8AF4HHhEQvm/ieh0R05yWqjtlAd3ONa/xPjdk=. It starts with gensy. That is a hit, so the miner stops.

We worked both out with Python and with this command:

printf %s 'gensys:60237861' | openssl dgst -sha256 -binary | base64

With scripts on, this page recomputes them too. The hit took about 60 million guesses. Five exact characters need about a billion on average, so that was lucky.[2]

Try it: search yourself

The live search needs JavaScript, which is off. The two real passes above are still correct.

Go deeper: work, proof and ignore-case

Each extra exact-case Base64 character makes the search 64 times longer on average. One character is 6 bits, and 26 = 64. A 2-character prefix needs about 4,096 guesses. A 3-character one needs about 262,144.

Luck varies. About 2 runs in 100 need more than 1,000,000 guesses for 3 characters. That is why the search above has a cap.

The real miner re-checks every hit with a separate reference SHA-256 before it prints it.[3]

The miner also has an ignore-case mode. Upper and lower case both match, so a letter is 1 in 32 instead of 1 in 64. Digits, + and / stay 1 in 64. The odds depend on which characters the prefix has. This page uses exact case. The prefix gensy is lowercase, so both modes accept the example.[4]

Next: step 2, why the miner can only guess →

Step 2 of 5 · 2 min

SHA-256 gives no shortcut, so the miner guesses

SHA-256 turns any input into a 256-bit digest. A bit is a 0 or a 1, so that is 32 bytes.[5] Change one character of the input and about half the bits flip. They flip in no pattern you can work backwards. Nobody knows a way from “a digest that starts like this” to an input. So the miner can only try inputs.

Toy, made up Eight bits instead of 256, to show the idea:

Filled squares in row B differ from row A: 4 of 8.

Measured Now the real thing, with all 256 bits. Edit A or B. The grid lights every bit that differs.

Example (JavaScript is off)

SHA-256 of hello world:

b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

SHA-256 of hello worle:

0fc30e735a0228a31cbbb969988b4f50e02e737f979f091d7d224b765443f5d4

These two digests differ in 140 of their 256 bits.

Go deeper: why 140, and what “avalanche” means

If each bit flipped like a fair coin, you would expect 128 flips. 140 is an ordinary result for 256 tosses. Other one-character changes land near 128 too. “Half the bits change after a tiny change” is the avalanche effect.

A prefix of N bits is hit by about one guess in 2N. That is where the 64-fold rule in step 1 comes from. SHA-256 is a public standard, not something we wrote.

Next: step 3, what “eight lanes” means →

Step 3 of 5 · 3 min

One AVX2 register holds eight 32-bit words

So one instruction works on eight guesses at once. A processor keeps values in registers, small fast slots. An AVX2 register is 256 bits wide. SHA-256 uses 32-bit words, and 256 ÷ 32 = 8. Each 32-bit slice is a lane.[6] The lanes stay separate here. AVX2 can shuffle values between lanes, but this layout does not need that.

The same eight additions, counted both ways. The squares are instructions.

Here is one tiny step, in three parts.

  1. Put one guess in each lane, gensys:0 to gensys:7. SHA-256 reads 32-bit words. The second word of each guess is ys: plus the counter digit.
  2. Add the second SHA-256 round constant, 0x71374491, to every lane. One instruction does it: _mm256_add_epi32. One value at a time would take eight.
  3. That is one tiny step of one round. A whole hash keeps 8 working values and a message schedule for each guess. Each is its own register, with one lane per guess. So eight lanes hold eight words of eight guesses. They are not eight finished hashes.

Eight lanes: 1 instruction does all 8 additions.

Measured Real 32-bit values in hex. This page recomputes them when scripts are on.
Lane / guessWord “ys:k”+ constant= sum
0 · gensys:079733a3071374491eaaa7ec1
1 · gensys:179733a3171374491eaaa7ec2
2 · gensys:279733a3271374491eaaa7ec3
3 · gensys:379733a3371374491eaaa7ec4
4 · gensys:479733a3471374491eaaa7ec5
5 · gensys:579733a3571374491eaaa7ec6
6 · gensys:679733a3671374491eaaa7ec7
7 · gensys:779733a3771374491eaaa7ec8

Why one register is not one hash

Schematic This is not the real instruction sequence. Each row is one register. Each square is one guess’s value in it.

Rows a to h are SHA-256’s eight working values. w… stands for the message words it mixes in. A hash repeats many such steps, for all eight guesses together. Some steps cannot be spread across lanes. So eight lanes does not mean eight times faster, and this page makes no such claim. The library we started from already hashed eight guesses this way.[7]

Go deeper: AVX-512 and SHA-NI

Some processors have wider AVX-512 registers, with 16 lanes. Some have dedicated SHA instructions, called SHA-NI. The library checks the processor at start-up and picks the first of these that fits:

  1. AVX-512. AMD Zen 4 chips with SHA-NI skip this and fall through. Zen 5 uses a double-width variant.
  2. SHA-NI.
  3. AVX2, eight lanes.
  4. Plain portable code.

Our change targets the AVX2 choice. It applies to a processor with AVX2 and neither SHA-NI nor AVX-512.[8] The Intel Intrinsics Guide lists every AVX2 instruction.

Next: step 4, what we changed →

Step 4 of 5 · 4 min

We changed the end of the hash call

The library already hashed eight guesses at a time with AVX2. We did not add that, and the 64 rounds are the same. What differs is what comes out. A miner only needs the start of each digest. So our call returns the first 32 bits of each one, not all 32 bytes.[9]

Those 32 bits are a filter: a cheap test that throws out almost every guess. A guess that passes is re-hashed the slow, safe way. Then the whole prefix is checked. So a filter pass is never reported as a hit. In the miner, one line does both: the filter, then the full check. Here are the two key spots, copied from the Rust source (exact-case branch):

// head_filter(), lines 147, 149 and 150: keep at most the top 32 bits
let m = bits.min(32);
let mask = u32::MAX << (32 - m);
let expected = ((exact_target >> (bits - m)) as u32) << (32 - m);

// mine_range(), lines 324 to 325: the filter first, then the full check
if head & mask == expected && sp.matches(n + i as u64).is_some() {
    return ChunkResult::Found(n + i as u64);
}
The stock call and our call, side by side
StepStock library callOur call
Guesses at once8 (AVX2)8 (AVX2), same
Roundsthe 64 rounds of SHA-256the same 64 rounds
What comes outall 8 full digests, 32 bytes eachonly the first 32 bits of each digest
What the miner does nextreads the first 4 bytes of each and comparescompares those 32 bits: the filter, where almost every guess ends
Survivorsn/are-hashed in full, whole prefix checked; a false hit is never printed

How wide is the filter?

It compares the top min(prefix bits, 32) bits of the first word.[10] A Base64 character is 6 bits, so a prefix of N characters is 6N bits. Short prefixes fit inside the filter. Long ones need the full check for the rest.

Exact-case Base64 prefixes. Each bar spans 60 bits, the longest prefix. The line marks 32 bits.
CharactersPrefix bitsFilter comparesLeft for the full checkGuesses on averageBits, drawn
166 bitsnone64
5 (gensy)3030 bitsnone1,073,741,824
6 (gensys)3632 bits4 bits68,719,476,736
106032 bits28 bits1,152,921,504,606,846,976
checked by the filterchecked only by the full check

“Guesses on average” is 2bits, worked out from the prefix size. It is not a measured figure.

Hex prefixes work the same way. A hex character is 4 bits, so each extra one makes the search 16 times longer. The miner takes 1 to 16 of them, in lowercase, and the filter stops at 8. Ignore-case works for Base64 only.[15] In ignore-case mode the filter treats upper and lower case as equal, again over the first 32 bits. Survivors are still checked in full.

When the new path runs. Only when the library picked its AVX2 kernel. The whole message, phrase plus colon plus counter, must also fit one 64-byte block. That means 55 bytes at most: 64, minus 1 padding byte and 8 length bytes. Anywhere else the stock path runs, and the answers are identical.[11]

What we know and what we don’t. From the design and the source: same rounds, a first-word output, the filter, and a full re-check of survivors. Measured once, in step 5: about 1.5 times faster. Not established: how much of that each piece explains. Nobody profiled the run.

Proposed, not merged We proposed the change to the library as spool-labs/sha256 pull request #4. Until it is merged and released, the miner builds against a fork that carries it.

Read the code: target() turns the prefix into bits. head_filter() builds the 32-bit mask. prefix_matches() is the full check.

Go deeper: the hand-written kernel that lost

The miner also has an opt-in 8-lane kernel of its own. In every comparison we have, the patched library’s median or mean was higher. These are different comparisons on the same shared computer. None is part of the 1.52 figure. They are in the table of other runs in step 5.[12]

Next: step 5, the measured tests →

Step 5 of 5 · 4 min

Two short tests: about 42 times for the whole change, 1.5 for our patch

Test 1: the C++ miner against the Rust miner

Measured We built the C++ miner as it is in the repo (g++ -O2, linked to OpenSSL) and the Rust miner with our patch, on the same computer. We ran four pairs, alternating which went first, each pinned to six cores. The C++ program has no time limit and no choice of prefix, so we let each run last 11 seconds and read its own progress line at 10 seconds. The Rust miner ran for 10 seconds on a prefix that can never match.[16]

Every run as recorded, with load, clock and temperature sampled just before it. Pair ratios: 41.68, 41.52, 43.48, 41.31. Medians: C++ 2.62, Rust 109.1. Bars run from 0 to 120 MH/s.
RunMH/sLoadMHz°CMH/s, drawn
1a C++2.633.38371766
1b Rust109.613.86437967
2a Rust108.374.34187958
2b C++2.614.68298463
3a C++2.524.88434465
3b Rust109.585.05432867
4a Rust108.655.33261163
4b C++2.635.66285464

The C++ number agrees with the 2.66 MH/s in the miner’s README, which came from a different run and was not re-measured until now. The pairs agree within about 5%, so the headline is not a fluke of one run. It is still four short runs on a shared computer. The two programs report speed differently: the C++ figure is its own average since start, which includes thread start-up and slightly favours Rust, while the Rust figure is the miner’s own rate line.

The raw log of test 1, as recorded
start 2026-11-15T02:13:17+01:00  02:13:17 up 23 days,  2:42,  4 users,  load average: 1.27, 0.98, 1.43
warmup cpp: 2.61 (workers=6, v1 PROGRESS at 10 s)
warmup rust: 114.90
pair1 pos1 cpp MH/s=2.63 (workers=6, v1 PROGRESS at 10 s) | before: load1=3.38 running=3 MHz0-5=3717 pkgC=66 | after: load1=3.86 running=2 MHz0-5=4376 pkgC=66
pair1 pos2 rust MH/s=109.61 | before: load1=3.86 running=1 MHz0-5=4379 pkgC=67 | after: load1=4.34 running=1 MHz0-5=2131 pkgC=58
pair2 pos1 rust MH/s=108.37 | before: load1=4.34 running=1 MHz0-5=1879 pkgC=58 | after: load1=4.68 running=1 MHz0-5=3131 pkgC=63
pair2 pos2 cpp MH/s=2.61 (workers=6, v1 PROGRESS at 10 s) | before: load1=4.68 running=1 MHz0-5=2984 pkgC=63 | after: load1=4.88 running=1 MHz0-5=4324 pkgC=67
pair3 pos1 cpp MH/s=2.52 (workers=6, v1 PROGRESS at 10 s) | before: load1=4.88 running=1 MHz0-5=4344 pkgC=65 | after: load1=5.05 running=2 MHz0-5=4365 pkgC=71
pair3 pos2 rust MH/s=109.58 | before: load1=5.05 running=3 MHz0-5=4328 pkgC=67 | after: load1=5.33 running=1 MHz0-5=2051 pkgC=64
pair4 pos1 rust MH/s=108.65 | before: load1=5.33 running=2 MHz0-5=2611 pkgC=63 | after: load1=5.66 running=2 MHz0-5=3004 pkgC=65
pair4 pos2 cpp MH/s=2.63 (workers=6, v1 PROGRESS at 10 s) | before: load1=5.66 running=1 MHz0-5=2854 pkgC=64 | after: load1=5.72 running=1 MHz0-5=4127 pkgC=71
end 2026-11-15T02:15:05+01:00

Test 2: our patch alone

Measured Same source, same build. Only the hash call differs. We ran three pairs of 10-second runs, with six threads pinned to six cores. Each searched for a prefix that can never match, so no run stopped early.[13]

Every run as recorded, with load, clock and temperature sampled mid-run. Pair ratios: 1.33, 1.52, 1.54. Medians: stock 71.55, patched 108.61. Bars run from 0 to 120 MH/s.
RunMH/sLoadMHz°CMH/s, drawn
1a stock82.202.70390077
1b patched109.123.36386876
2a patched108.613.92380076
2b stock71.554.71380076
3a stock69.275.29380078
3b patched106.905.63390077
Other runs: earlier and separate, not comparable with the headline

These come from the miner’s earlier notes and a separate pilot. They used different builds, thread counts, run lengths or pinning. They are not on one axis with the picture at the top. They are not a second result for the same claim.[14]

MH/s unless noted; one shared i7-8700 throughout
Run setStock libraryCustom AVX2Patched library
Earlier means, 6 threads, unpinned, 3–4 runs of 5 s, load 4–7637997 (runs 105.2, 90.1, 95.4)
Earlier means, 11 threads, same setupn/a97109 (runs 108.8, 109.7, 107.9)
Paired medians, 6 threads, 3 runs of 8 s, load 5.4–9.7n/a70.087.6
Pinned pilot, lib against custom AVX2, 3 pairs of 10 s (separate from the headline run)n/a76.94, 87.88, 80.16 (median 80.16)108.61, 104.57, 99.51 (median 104.57)

The 105.2 and 109.7 are single-run peaks, not typical results. The earlier unpinned stock mean of 63 is not comparable with the pinned runs above.

The raw log, as recorded
start 2026-11-14T01:10:10+01:00  01:10:10 up 22 days,  1:39,  5 users,  load average: 2.47, 3.47, 4.10
warmup stock 4s: 84.58 | mid: load1=2.35 running=2 MHz0-5=4299 pkgC=67
warmup patched 4s: 114.70 | mid: load1=2.32 running=4 MHz0-5=3716 pkgC=68
pair1 pos1 stock MH/s=82.20 | mid: load1=2.70 running=8 MHz0-5=3900 pkgC=77 | before: load1=2.32 running=2 MHz0-5=3716 pkgC=67 | after: load1=3.04 running=2 MHz0-5=2553 pkgC=71
pair1 pos2 patched MH/s=109.12 | mid: load1=3.36 running=8 MHz0-5=3868 pkgC=76 | before: load1=3.04 running=3 MHz0-5=3144 pkgC=72 | after: load1=3.65 running=2 MHz0-5=3717 pkgC=71
pair2 pos1 patched MH/s=108.61 | mid: load1=3.92 running=9 MHz0-5=3800 pkgC=76 | before: load1=3.65 running=2 MHz0-5=3719 pkgC=71 | after: load1=4.25 running=3 MHz0-5=4300 pkgC=71
pair2 pos2 stock MH/s=71.55 | mid: load1=4.71 running=11 MHz0-5=3800 pkgC=76 | before: load1=4.25 running=3 MHz0-5=4299 pkgC=71 | after: load1=4.97 running=5 MHz0-5=4299 pkgC=78
pair3 pos1 stock MH/s=69.27 | mid: load1=5.29 running=9 MHz0-5=3800 pkgC=78 | before: load1=4.97 running=4 MHz0-5=4300 pkgC=78 | after: load1=5.51 running=3 MHz0-5=4298 pkgC=73
pair3 pos2 patched MH/s=106.90 | mid: load1=5.63 running=9 MHz0-5=3900 pkgC=77 | before: load1=5.51 running=3 MHz0-5=4301 pkgC=75 | after: load1=5.74 running=3 MHz0-5=4300 pkgC=72
end 2026-11-14T01:11:24+01:00

What this is not.

Test 1 is four pairs of about 10 s. The C++ build flags were ours, because the repo gives none, and a different compiler setting could move the C++ figure. Test 2 is three pairs on one shared Intel i7-8700, which has AVX2 and no SHA-NI. The computer got busier during the run. The 1-minute load rose from 2.3 to 5.7. The clock was not locked. Part of the first pair’s 1.33 is noise. “Stock” still includes the miner’s own running counter, so it is not untouched library code.

It is a short test, not a sustained run, and not a result for other processors. Where the library picks SHA-NI or AVX-512, the stock path runs, so expect no gain. We know what the change removes. We did not profile the run, so this page does not say how much each part explains.

Next: open the miner’s README and run this yourself:

vanity-miner --prefix gensy --ignore-case

After step 5 · 3 min

How hard is the search?

Speed is half of how long a search takes. The other half is how many guesses it needs, and that grows fast. Three pictures, from our separate article What it costs to find a SHA-256 prefix.

Guess, hash, compare, repeat

The miner hashes each guess and compares the start with your prefix. A miss is dropped. A hit is hashed again with a reference library before it is reported. Step 1 has real values.

Four guesses, one match Four columns. Each shows a guess, gensys:0 to gensys:3, with an arrow down to its result. The first three results read no match. The fourth reads match. gensys:0 ✗ no match gensys:1 ✗ no match gensys:2 ✗ no match gensys:3 ✓ match hash each guess, compare the start, keep or drop
Made-up run: nonce 3 is not a real match. A real one: prefix gensy with ignore-case was found at nonce 60,237,861 (v2/README.md).

Why one more character costs 64 times

Each Base64 character is 6 bits, so it has 64 possible values. A hash lands on one given value 1 time in 64. One more exact character therefore means 64 times as many guesses on average.

Work added by one more prefix character One more character multiplies the expected guesses by 64 for an exact character, by 32 for a letter when case is ignored, and by 64 for a digit, plus or slash even when case is ignored. One more character in the prefix × 64exact case: any character × 32ignore case: a letter (A and a both count) × 64ignore case: a digit, + or /
Ignore-case is a Base64 option only. Hex prefixes are lowercase and cost 16 times per character.

Work out the time for your own prefix

Six letters with ignore-case take about 10 seconds. Ten exact characters take centuries. Pick a length, a mode and a speed, and the calculator gives the guesses, the time and the chance of a hit.

Open the search cost calculator

Why memory stays small

The miner keeps no list of guesses, only the ranges it has finished. Misses are dropped on the spot, so memory does not grow with the number of guesses.

Threads, chunks and the record of finished ranges Three thread boxes, labelled thread 1, thread 2 and thread N, each take one chunk of 262,144 nonces. Misses are discarded. Only finished chunks flow down into a journal of finished ranges, with a checkpoint every 30 seconds. thread 1 thread 2 thread N one chunk each: 262,144 nonces hash, compare, drop every miss finished chunks only journal of finished ranges neighbouring ranges merge into one checkpoint every 30 s
Only the bottom box is kept, and a chunk that was cut short or holds a hit is not recorded.

The full article also has the formula, the limit on nonces, and how a stopped run resumes.

Words used on this page

Word list, 10 terms
guess
A phrase plus a counter, like gensys:60237861.
SHA-256 and digest
A fixed recipe that turns any text into a 256-bit fingerprint, called the digest. It is set out in the public standard FIPS 180-4.
bit, 256 bits
A bit is a 0 or a 1. 256 of them are 32 bytes.
Base64
A way to write bytes as letters, digits, + and /. Each character stands for 6 bits (RFC 4648).
prefix
The first characters we want the Base64 text of the digest to start with.
register and lane
A register is a wide slot inside the processor. A lane is one 32-bit slice of it. An AVX2 register has eight.
AVX2, AVX-512, SHA-NI
Processor features. AVX2 works on 256 bits at a time, and AVX-512 on 512. SHA-NI adds instructions made for SHA hashing.
filter
A cheap test that throws out almost every guess and may let a few through.
re-hash (full check)
Hashing a surviving guess again the slow, safe way and comparing the whole prefix.
MH/s
Millions of hashes per second.

Sources and notes

Everything comes from the public repo, simple-sha256-miner, and the spool-labs/sha256 library it builds on. For another explainer in this style, read what the trading bot contract does.

  1. The miner’s documentation: a guess is phrase:number, the test is on the start of the Base64 digest, and it is not Bitcoin mining.
  2. We recomputed the hit and miss passes for this page, as step 1 says. The ~60 million figure is nonce 60,237,861 from docs/bench-hillclimb1-20261114.txt. The ~1 billion is 645 = 1,073,741,824.
  3. The miner’s documentation: every candidate hit is verified with a separate reference SHA-256 before it is reported. In code, that is main.rs lines 212 to 215.
  4. The miner’s documentation: 64-fold per exact-case Base64 character. In ignore-case mode a letter matches 2 of the 64 Base64 characters, which is 1 in 32. A digit, + or / still matches 1 of 64.
  5. NIST FIPS 180-4, Secure Hash Standard: 256-bit digest, 32-bit words, 64 rounds, padding. RFC 4648: 6 bits per Base64 character. The 140-of-256 count for the two example messages matches a separate sha256sum and Python recount.
  6. Intel Intrinsics Guide: a 256-bit AVX2 register, and _mm256_add_epi32 as eight 32-bit additions in one instruction.
  7. The library’s pull request describes staging one padded block per lane. We do not claim how it arranges its registers beyond that. The schematic is an illustration.
  8. The kernel order is from the library’s public source at commit 391432a: the select() function and the SHA-NI check.
  9. The new call, hash_short_heads, returns each digest’s first 32-bit word. See pull request #4.
  10. From the miner’s source, head_filter(): the mask covers the top min(prefix bits, 32) bits, and every survivor is checked in full.
  11. In the pull request, the AVX2 fast path runs when the selected kernel is AVX2 and the message fits one block (ONE_BLOCK_MAX = 64 − 9 = 55 bytes), in groups of eight. Otherwise the general path hashes fully and truncates.
  12. The miner’s pilot log for the custom kernel against the library: docs/bench-pilot-20261114.txt. Medians: library 104.57, custom AVX2 80.16.
  13. Every number in the patch picture, the test 2 table in step 5 and its raw log comes from one file: the miner’s log for the stock-against-patched test, docs/bench-stock-vs-patched-20261114.txt. We copied it row by row. The pull request description gives the same medians and ratio.
  14. The earlier means, the 11-thread runs and the 8 s paired medians are from the miner’s v2/README.md. The pinned library-against-custom pilot is in the file named in note 12.
  15. The miner’s target() allows 1 to 10 Base64 characters at 6 bits, or 1 to 16 hex characters at 4 bits. The README says the same under “Limits”. The 16-fold step per hex character is 24, worked out from that.
  16. The miner’s log for the C++-against-Rust test, docs/bench-cpp-vs-rust-20261115.txt: method, both programs’ hashes, the script and the raw log. The Rust miner is the repo’s v2 at commit 61d8588, which builds against our fork of the library carrying the patch. The 71.55 in the card at the top is the stock median from test 2.

The numbers come from one computer and one short test. They are not a benchmark of your machine.