# Workstream 28 — SHA256 and RIPEMD160 pipeline bottlenecks (Bitcoin Puzzle #71) **Date:** 2026-11-23 (UTC). **Status of work:** No private key found or sought by brute force; this item measures and analyses the hashing stage of the address-check pipeline. All performance figures are **measured** on one machine unless labelled *estimate* or *analysis*. ## 1. Question and assumptions **Question.** In the candidate-checking pipeline for Puzzle #71 — `privkey → EC scalar mult → compressed pubkey (33 B) → SHA256 → RIPEMD160 = HASH160 → compare to target` — where is the hashing bottleneck, how fast is it on commodity hardware, and does it sit on the critical path? **Assumptions (verified below where possible).** - The target is address-only: the public key is **not** published, so candidates must be reduced all the way to HASH160. This is verified structurally (see §2) and is decisive for §3. - "Bottleneck" is scoped to the two hash primitives; EC cost is discussed only for context. - Commodity CPU, no GPU, single machine. Node.js `crypto` (OpenSSL) and bulk measurement are used as a portable proxy for the primitive speeds; production solvers (BitCrack, VanitySearch, Kangaroo) use hand-written single-block SIMD/GPU kernels and are faster — their relative ratio between the two primitives is what this item characterises. ## 2. Verified target facts (with sources) Reproducible, computed locally (see §3 code), independent of any web claim: - `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU` Base58Check-decodes to **version byte 0x00 (P2PKH)**, **HASH160 = `f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8`**, 4-byte checksum **valid**. - Reward recipient `bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx` decodes as **witness version 1, bech32m checksum valid, 32-byte program** = valid **P2TR (Taproot)**, program `46bfc36cb0a801aa7d19aff5ceffc6735d461e99bebd4c6c7fa3b2fbae2c0a6f`. Encoding is sound; this is the payout address, never a search target. From public sources (see `sources.json`): - Keyspace `400000000000000000:7fffffffffffffffff` = 2^70 … 2^71−1 (the brief's interval, confirmed by local arithmetic). News coverage states #71 "carries approximately 7.1 BTC and requires searching a keyspace in the range from 2^70 to 2^71" [news.bitcoin.com]. - Puzzle #71 is **unsolved**: it is "the lowest remaining address-only target, with pool telemetry projecting 421 years at current speed" [news.bitcoin.com], echoed as "the lowest-numbered address-only prize still unsolved" with a "about 421.92 years" projection [gncrypto.news]. **Note on chain confirmation.** This machine's RPC endpoints cover EVM chains 1/4663/8453 only; there is no Bitcoin RPC here, so live UTXO/mempool confirmation of the #71 balance could not be performed and is cited from public trackers/news, not re-verified on-chain. No conflict with the brief's parameters was found: address, interval and 2^70…2^71−1 all agree. ## 3. Method and reproducible code Environment: AMD Ryzen 9 9950X (16 cores), Linux WSL2, Node.js v24.22.3, single thread. All scripts live in `test/scratch/` (not submitted); the essential logic: ```js import crypto from 'node:crypto'; // Address check per candidate: SHA256(33B pubkey) then RIPEMD160(32B) function hash160(buf){ const s = crypto.createHash('sha256').update(buf).digest(); // 1 x 512-bit block return crypto.createHash('ripemd160').update(s).digest(); // 1 x 512-bit block } // (A) naive per-candidate throughput (allocation-bound) // (B) bulk throughput on a 64 MiB buffer to isolate raw compression speed ``` Block accounting (verified by construction): a 33-byte input pads to a single 64-byte SHA256 block; the 32-byte SHA256 output pads to a single 64-byte RIPEMD160 block. So **each candidate costs exactly one SHA256 compression + one RIPEMD160 compression** — no length loop, no multi-block path. This is the fact a fast kernel exploits (fixed-size, precomputed padding). ## 4. Actual tests, hardware, runtime, results Measured (single core, Node/OpenSSL): | Measurement | Result | Derived | |---|---|---| | SHA256, bulk (64 MiB) | **2493 MB/s** | **38.95 Mblocks/s** | | RIPEMD160, bulk (64 MiB) | **472.7 MB/s** | **7.39 Mblocks/s** | | `hash160()` naive, 33-B input, 2M ops | 3.38 s | **0.591 Mops/s** | **Finding 1 — RIPEMD160 is the primitive bottleneck.** Per 64-byte block, RIPEMD160 is **~5.3× slower** than SHA256 on this CPU (7.39 vs 38.95 Mblocks/s). The SHA256 figure (2.5 GB/s) indicates hardware SHA-NI acceleration; RIPEMD160 has **no x86 hardware instruction**, so it is executed in plain ALU code. In any pipeline using SHA-NI (or a GPU SHA256 kernel), RIPEMD160 therefore dominates HASH160 time and widens as SHA256 is accelerated. If the inner loop were purely compression-bound, the two-block pipeline would run at `1 / (1/38.95 + 1/7.39) ≈ 6.2 Mops/s/core`. **Finding 2 — naive code is call-overhead bound, not compression bound.** The straightforward `createHash` pipeline reaches only **0.591 Mops/s**, ~10× below the 6.2 Mops/s compression ceiling. The gap is object allocation / digest finalisation per call. The same trap applies to Python `hashlib` and any high-level language. This is why real solvers inline fixed-length single-block routines and batch lanes (AVX2/AVX512/SHA-NI, or GPU warps) rather than calling a library hash per candidate. Optimisation payoff here (~10× from removing overhead, more from SIMD) is real but is a **constant-factor** gain against a 2^70 space — see §5. **Finding 3 — the HASH160 stage is unavoidable and on the critical path for #71.** Because the target supplies only an address/HASH160 and the public key has never been revealed (the address is unspent), public-key ECDLP shortcuts — Pollard's **kangaroo** and **BSGS** — **cannot be applied**: they require the target public key as input, which Puzzle #71 does not provide — public reporting notes only "known-public-key puzzles 135 through 160 can apply Pollard's Kangaroo" [news.bitcoin.com]. Every brute-force candidate must pass through SHA256+RIPEMD160. (Contrast: solved puzzles whose coins were spent exposed a pubkey, enabling kangaroo. #71 is not in that state.) Thus hashing is co-dominant with EC work in an optimised **incremental** scanner, where consecutive keys are reached by one elliptic point addition (cheap, ~a few field mults with batched Montgomery inversion) rather than a full scalar multiplication — leaving the two hash blocks as a large, irreducible share of each step, and RIPEMD160 as its slowest component. **Finding 4 — scale extrapolation (*estimate*).** Keyspace = 2^70 ≈ 1.18×10^21 candidates. Even at the compression ceiling of 6.2 Mops/s/core × 16 cores ≈ 99 Mops/s (hashing only, EC ignored, so an optimistic upper bound), one full pass is ≈ 1.18×10^21 / 9.9×10^7 ≈ 1.2×10^13 s ≈ **~3.8×10^5 years**. This CPU-only hashing bound is the same order as the public RTX-4070 estimate (~430,000 years) and consistent with the pool's ~422-year figure once thousands of GPUs are summed [gncrypto.news]. Conclusion: micro-optimising the hash pipeline changes the constant, **not the feasibility** — a single machine cannot close a 2^70 gap. ## 5. Limitations and concrete next step **Limitations.** - Node/OpenSSL is a proxy for primitive speed, not a solver kernel; absolute Mops/s would rise ~10–100× with SIMD/GPU, but **Finding 1's ratio (RIPEMD160 ≫ SHA256 cost)** is the portable, decision-relevant result and is robust across those backends. - Live Bitcoin UTXO/mempool state was not re-verified on-chain here (no BTC RPC on this host); balance/solved status rely on public trackers/news dated June 2026 and could lag a very recent solve. The structural facts (P2PKH, HASH160, interval, recipient P2TR) are independently reproducible and do not depend on those sources. - No pattern/statistical claims are made. Per the goal's cautions: the address prefix `1PWo3…` carries **no** information about the key's numeric location — HASH160 is effectively uniform — so no prefix/closeness heuristic is pursued (no hypothesis, hence no held-out test needed). **Concrete next step (bounded, reproducible).** Build and micro-benchmark a **single-block, batched** HASH160 kernel on a *locally generated small puzzle* (e.g. a 24-bit key whose address you own) to measure the real end-to-end candidate rate and the RIPEMD160 share of it, then compare three backends on identical input: (a) SHA-NI SHA256 + scalar RIPEMD160, (b) AVX2 8-lane both, (c) the overhead-bound library baseline measured here. Expected, falsifiable prediction from Finding 1: RIPEMD160 will account for **≥70%** of HASH160 time once SHA256 uses SHA-NI/SIMD, making a vectorised RIPEMD160 the highest-value optimisation target — and even a perfect hash kernel leaves the 2^70 search infeasible on non-pooled hardware (Finding 4). Validate the kernel by recovering the small local key end-to-end before trusting any throughput number. **Solution found: No.** This workstream produced measurements and a correct scoping of the hashing stage; it did not and cannot recover the Puzzle #71 key. No key, seed, or signed transaction is produced or published.