# Workstream 40 — Checkpoint recovery & duplicate-range detection **Goal context:** Bitcoin Puzzle #71, address `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU`, private key in the inclusive interval `0x400000000000000000 … 0x7fffffffffffffffff` (= 2^70 … 2^71−1). Reward recipient (not the target): `bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx`. **No private key, seed, or spendable transaction is produced or sought here.** This workstream is pure search-infrastructure engineering: can a partitioned keyspace scan survive crashes and never let two workers (or one worker twice) redo the same sub-range? **Solution found: NO.** This item does not attempt to crack #71. It delivers and measures the bookkeeping any serious attempt would need, validated on locally-generated *small* puzzles. ## 1. Question and assumptions Question: *If the 2^70 interval is split into chunks across unreliable workers, can we (a) resume a crashed chunk from a durable checkpoint with bounded wasted work, and (b) detect and reject any duplicate or overlapping range claim?* Assumptions (all verified below except where noted): - The target is unsolved and parameters match the brief — **verified** (§2). - Correctness of checkpoint/dedup logic is **independent of the target function**: a scan over `[lo,hi)` looking for a key whose hash160 equals a target is structurally identical whether the target is #71 or a 16-bit toy. So I test on a *faithful* toy (real secp256k1 + real Bitcoin hash160, tiny range) where ground truth is known. **(assumption, argued not measured for 2^70)** - No GPU, no shared state between agents, bounded CPU/time. Confirmed: host is `x86_64`, 4 CPUs, CPython 3.14.4, no `ecdsa`/`coincurve` installed (minimal secp256k1 implemented in-process). ## 2. Verified target facts (sources in §Sources) Observed 2026-11-23 ~07:36 UTC; chain tip height **977166** (blockchain.info `getblockcount`). - **Address / unspent status (authoritative):** blockchain.info `rawaddr` reports `hash160 = f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8`, `total_sent = 0`, `final_balance = 710196696` sat (**7.10196696 BTC**), 73 unredeemed outputs. `total_sent == 0` ⇒ the key has **never signed** ⇒ **unsolved**. The puzzle funding tx last seen in block 976128. - **Keyspace:** I recomputed the interval locally: `0x400000000000000000 == 2**70` (True), `0x7fffffffffffffffff == 2**71-1` (True), count `= 1180591620717411303424 == 2**70` (True). A public solver project independently states "Puzzle #71 keyspace: **2^70 keys**" and splits it into 2^30 chunks of 2^40 — matching the chunking model tested here. - **Target address decode:** Base58Check of `1PWo3JeB9...` → version byte `0` (P2PKH mainnet), hash160 `f6f5431d…a5b8` — **matches the explorer's hash160** (two independent paths agree). - **Recipient encoding (validated before any use):** `bc1pg6lux…xu0cx` decodes as bech32**m** (checksum residue `0x2bc830a3`, the BIP-350 constant → valid), HRP `bc`, witness version `1` (Taproot/P2TR), 32-byte program `46bfc36c…0a6f`. Encoding is **valid**; it is a recipient only. *Analysis note:* "422 years" / "37,000+ years" effort figures seen in press/solver READMEs are third-party estimates under different hardware assumptions and are **not** measured here. ## 3. Method and reproducible code Four components (full harness: ~180 lines, runs with only the Python stdlib). Core excerpts: **Even, gapless partition of the inclusive interval** (remainder spread over the first chunks): ```python def partition(lo, hi, n): # inclusive [lo,hi] -> half-open chunks total=hi-lo+1; base=total//n; rem=total%n; out=[]; cur=lo for i in range(n): sz=base+(1 if i restart signal ``` **Duplicate-range / overlap detection** — exact half-open interval logic `a