# Workstream 36 — Benchmark a small, reproducible CPU baseline **Scope:** Build and *measure* a dependency-free CPU baseline for brute-forcing a Bitcoin-puzzle-style address, validate it against known puzzle data, solve locally-generated small puzzles end-to-end, and extrapolate honestly to Puzzle #71. This item does **not** attempt to solve #71. **No key was found; none is claimed.** All measurements below were produced on this machine during this run (UTC 2026-11-23T07:37Z). Measured numbers and estimates/extrapolations are labelled. --- ## 1. Question and assumptions **Question:** How fast can a *reproducible, dependency-free* single-CPU-core baseline test private-key candidates against a target hash160, and what does that rate imply for the 2^70-wide Puzzle #71 keyspace? **Assumptions / verified facts:** - Puzzle #71 target `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU` is **address-only**: the public key is not exposed, so only brute force over hash160 applies. Pollard's kangaroo / BSGS need a known public key and are therefore **not applicable** to #71 (sources S3, S4). Address-prefix similarity is *not* evidence of key proximity. - Interval is 2^70 … 2^71−1 = `0x400000000000000000`…`0x7fffffffffffffffff` (goal brief; "2^70 to 2^71" in S2). 2^70 candidates. - Target still unsolved / funds present: live query returned `final_balance = total_received = 710196696` sat (7.10196696 BTC), `n_tx = 73`, i.e. nothing ever spent (S1, queried 2026-11-23T07:37Z). - Baseline must run with **Python standard library only** (this sandbox has no `pip`, no `coincurve`/`ecdsa`, and the final verifier has no network), so the committed, reproducible artifact is pure Python. Optimized native/GPU figures are cited, not run. - Reward recipient `bc1pg6lux…xu0cx` was independently decoded as a valid **mainnet P2TR (bech32m, witness v1)** address: hrp=`bc`, witver=1, bech32m checksum constant `0x2bc830a3` matches. (Recipient only; never the search target.) --- ## 2. Sources with dates - **S1** blockchain.info rawaddr API — live balance/UTXO state of the #71 address, queried 2026-11-23T07:37Z. `final_balance`=`total_received`=710196696 sat ⇒ unspent. - **S2** gncrypto.news, "Solvers Target $58.9M Bitcoin Puzzle; Puzzle 71 Needs 422 Years" (accessed 2026-11-23): #71 "holds roughly 7.1 BTC and requires searching the private-key interval from 2^70 to 2^71"; projection ~421.92 years. - **S3** github.com/roadhero/Bitcoin-Puzzle-Info README (accessed 2026-11-23): "#71 — 71-bit key space, **brute-force only**… A single RTX 4090 at ~1.5 billion keys/second would take roughly **25,000 years**." Confirms brute-force method and that kangaroo applies only to puzzles with **exposed public keys**. - **S4** Same README: "Iterate through all possible private keys in the range 2^(N-1) to 2^N. For each key, derive the Bitcoin address and check if it matches the target." (Defines the exact algorithm this baseline implements.) Sources S2–S4 are community/news pages, not primary cryptographic proofs; S1 is a live chain query and is authoritative for balance/spent status at the stated time. --- ## 3. Method and reproducible code The baseline implements S4's algorithm directly: for a candidate scalar `k`, compute `k·G` on secp256k1, derive the compressed-pubkey hash160 (`RIPEMD160(SHA256(pubkey))`), and compare to the target hash160. Two modes are measured: - **naive** — full double-and-add scalar multiplication per candidate (worst case). - **incremental (+G)** — keep the current point and add `G` once per step to advance `k → k+1`. This is the realistic sequential-scan cost and is ~75× faster here. Correctness is pinned by a self-test reproducing Puzzle #1's address from key `1` (`1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH`), which exercises the entire pipeline (scalar mult → compressed pubkey → SHA256 → RIPEMD160 → Base58Check). The script then *actually solves* locally-generated puzzles of 2^16/2^20/2^24 to prove the search finds the planted key, and extrapolates to 2^70. ```python #!/usr/bin/env python3 # Dependency-free secp256k1 CPU brute-force baseline. Stdlib only. Reproducible. import hashlib, time, random P = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F Gx = 0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798 Gy = 0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8 G = (Gx, Gy) def inv(a): return pow(a, -1, P) def padd(Pt, Q): if Pt is None: return Q x1,y1 = Pt; x2,y2 = Q if x1 == x2: if (y1 + y2) % P == 0: return None m = (3*x1*x1) * inv(2*y1) % P else: m = (y2 - y1) * inv(x2 - x1) % P x3 = (m*m - x1 - x2) % P return (x3, (m*(x1 - x3) - y1) % P) def pmul(k): R=None; A=G while k: if k & 1: R = padd(R, A) A = padd(A, A); k >>= 1 return R def h160(Pt): x,y = Pt pub = (b'\x03' if (y & 1) else b'\x02') + x.to_bytes(32,'big') return hashlib.new('ripemd160', hashlib.sha256(pub).digest()).digest() B58 = b'123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def b58check(ver, payload): data = bytes([ver]) + payload chk = hashlib.sha256(hashlib.sha256(data).digest()).digest()[:4] n = int.from_bytes(data+chk,'big'); out=b'' while n: n,r = divmod(n,58); out = B58[r:r+1]+out pad = len((data+chk)) - len((data+chk).lstrip(b'\x00')) return (B58[0:1]*pad + out).decode() def addr(Pt): return b58check(0x00, h160(Pt)) # self-test: Puzzle #1 (key=1) -> known address (validates whole pipeline) assert addr(pmul(1)) == '1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH' def bench_naive(it): k0=(1<<67)|12345; t=time.perf_counter() for i in range(it): h160(pmul(k0+i)) return it/(time.perf_counter()-t) def bench_incr(it): k0=(1<<67)|12345; Pt=pmul(k0); t=time.perf_counter() for i in range(it): h160(Pt); Pt=padd(Pt,G) return it/(time.perf_counter()-t) def solve_small(bits, seed=42): rng=random.Random(seed); lo=1<<(bits-1); hi=(1<