# Puzzle #71 — Checkpoint and resume integrity **No Puzzle #71 solution was found.** A bounded scan tested 2,048 distinct candidates with both public-key encodings. In the synthetic control, saving the cursor early skipped the correct candidate and falsely reported exhaustion. A transaction that saved progress and the match flag together survived both tested crash timings. ## Question and assumptions Can an interrupted sequential search resume without losing coverage or forgetting that it saw a match? The experiment assumes one active scanner per local checkpoint file and a deterministic predicate. It tests exact coverage of a small range, including integers above signed 64-bit capacity. It makes no claim about patterns in puzzle keys. ## Verified target and public challenge - The #71 catalog gives the target `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU` and the inclusive interval `0x400000000000000000` through `0x7fffffffffffffffff`. The bounds are exactly `2^70` through `2^71 - 1`, so the interval contains `2^70` candidates. Local Base58Check validation gave network/version byte `00` and HASH160 `f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8`. The on-chain output also commits to that digest. [#71 catalog, checked 2026-11-23 UTC](https://www.cryptographytube.com/bitcoin-puzzle/71/) · [Original transaction data](https://mempool.space/api/tx/08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15) - Bulista publicly identified the funding transaction as a prize challenge on BitcoinTalk on 2015-12-28 at 16:12:47 (guest forum display). On 2017-04-27 at 06:41:08 (guest forum display), the account `saatoshi_rising` claimed to have created it and described it as a public test of the community's key-search capacity, using masked deterministic-wallet keys. These are the original announcement and claimed creator statement I could verify. I found no earlier creator invitation or independently authenticated identity. [2015 announcement](https://bitcointalk.org/index.php?topic=1306983.0) · [2017 statement, post #248](https://bitcointalk.org/index.php?topic=1306983.msg18765941) - Original funding outpoint `08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15:70` paid 7,100,000 sat at block **339085**, header time **2015-01-15 18:07:14 UTC**. The largest UTXO in the snapshot was `12f34b58b04dfb0233ce889f674781c0e0c7ba95482cca469125af41a78d13b3:5`, 639,000,000 sat at block **785620**, header time **2023-04-16 06:29:48 UTC**. The latest funding output was 710 sat at block **976128**, header time **2026-11-16 12:46:19 UTC**. [Original funding](https://mempool.space/api/tx/08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15) · [UTXO response](https://mempool.space/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU/utxo) - Between **2026-11-23 07:33:59 and 07:34:01 UTC**, both explorers reported tip **977165**, hash `000000000000000000014641e7b8d308b6a5eaec5772d150ceed4a4f3720e600`, header time **07:23:51 UTC**. Each tip hash was unchanged before and after the address queries. Both listed **73 confirmed UTXOs totaling 710,196,696 sat (7.10196696 BTC)** and zero confirmed or mempool spends. For reproducibility, the SHA-256 of the UTF-8 compact JSON of sorted `[txid,vout,value]` tuples from either UTXO response was `6d1d643710f3e7960338cbf9f40c400327d9b667075645f4beb3b2db2b0f4717`. The catalog marked #71 unsolved, consistent with the unclaimed funds. Someone finding a key privately would leave no trace in this check. [Tip block](https://mempool.space/api/block/000000000000000000014641e7b8d308b6a5eaec5772d150ceed4a4f3720e600) · [Mempool address counters](https://mempool.space/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU) · [Blockstream UTXOs](https://blockstream.info/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU/utxo) · [Blockstream address counters](https://blockstream.info/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU) · [#71 catalog](https://www.cryptographytube.com/bitcoin-puzzle/71/) - The designated recipient `bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx` passed BIP 350 encoding checks locally. The HRP was `bc`, witness version was 1, program length was 32 bytes with canonical padding, and polymod was `0x2bc830a3`. This check establishes encoding validity only. No transaction was signed or broadcast. [BIP 350, assigned 2020-12-16](https://bips.dev/350/) ## Method Sequential search needs the interval, secp256k1 generator and target HASH160, all available for #71. For each scalar, derive its public point and compare the full HASH160 of each SEC encoding. A low-level scanner may use point addition between adjacent scalars. This implementation uses independent scalar derivation for simplicity. Pollard kangaroo and baby-step giant-step need the actual target curve point to form group operations. The address gives a hash, and no spending input was observed that supplies the point. I did not run either discrete-log algorithm. An address-prefix match offers no evidence of scalar proximity. [Original output script](https://mempool.space/api/tx/08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15) The cursor is the first candidate left to check, stored as decimal text to preserve all bits. The checkpoint binds that cursor to the predicate/version, target digest and half-open range. A batch commits its cursor and match flag together after checking candidates. With one trusted writer and atomic durable commits, the invariant is that every candidate below the saved cursor has been checked. A crash can repeat work from the previous commit. The intentionally faulty control commits the next cursor before performing the batch. Its uncovered candidates are invisible if only the final cursor is inspected. ## Executed tests Single scanner on an x86-64 AMD EPYC 7543P, Python 3.12.3, SQLite 3.45.1, cryptography 41.0.7, no GPU. Batch size was 256 and the window was `[2^70, 2^70 + 2048)`. The synthetic digest was generated locally using the uncompressed encoding, with the match inside the second batch. A forked worker received a real SIGKILL at the chosen commit boundary. A separate trace recorded candidate offsets for comparison with expected integer sequences. Elapsed times below are from one run and include per-candidate trace writes and, where applicable, process termination and recovery. | Run | Seconds | Attempts | Unique | Final cursor offset | Match flag | |---|---:|---:|---:|---:|---:| | Synthetic uninterrupted baseline | 0.338 | 384 | 384 | 384 | 1 | | Synthetic clean close after first batch, then resume | 0.376 | 384 | 384 | 384 | 1 | | Synthetic SIGKILL after updating row, before commit | 0.455 | 512 | 384 | 384 | 1 | | Synthetic SIGKILL after committing match and cursor | 0.346 | 384 | 384 | 384 | 1 | | Synthetic faulty early commit, then SIGKILL | 1.605 | 1,792 | 1,792 | 2,048 | 0 | | Puzzle #71 bounded scan | 1.842 | 2,048 | 2,048 | 2,048 | 0 | The pre-commit crash replayed exactly 128 candidates. The post-commit crash retained the match flag with zero replay. The early-commit control skipped offsets 256 through 511, including the match. Changing the target while retaining the checkpoint was rejected. All trace assertions passed. Total timed experiment was 4.972 seconds. ## Limits and next experiment The live scan covered `2^-59` of #71. The measured, instrumented rate was about 1,112 candidates/s in that run. A purely linear extrapolation at that rate is about 34 billion years to cover the full interval. This describes the cost of this CPU reference harness and gives no benchmark for optimized implementations. With a single unfinished batch, the design bounds crash replay by batch size. The measurements do not establish the best batch size. The test covered process crashes on one filesystem. Power loss, storage corruption, multiple writers and dishonest completion claims remain untested. A syntactically valid cursor could still be false if a worker or storage layer is faulty. The experiment saves only a match flag, sufficient for testing recovery. Any larger run would need to durably preserve the matching batch identifier for private replay and independent verification. The next experiment should split a synthetic window into disjoint half-open shards, then sweep batch sizes 64, 256 and 1,024 with two workers. Inject seeded crashes during scanning and before and after the commit, expire one lease while its original worker is still alive, and require a generation check before accepting that worker's completion. Compare the sorted union of completed intervals and an independent candidate trace to an uninterrupted oracle. Report unique candidates per second, replay per crash and skipped candidates. Include a short final shard and synthetic matches on the first and last candidates. ## Reproduction Save the following as a Python file and run with Python 3 on Linux, with the existing `cryptography` package and RIPEMD-160 available through `hashlib`. The run is offline, creates only temporary state, and prints coverage counters without candidate secrets. ```python import hashlib import json import os import signal import sqlite3 import tempfile import time from pathlib import Path from cryptography.hazmat.primitives.asymmetric import ec from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat LOW = 1 << 70 STOP = LOW + 2048 CHUNK = 256 ADDRESS = "1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU" RECIPIENT = "bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx" def verify_addresses(): number = 0 alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" for char in ADDRESS[1:]: number = 58 * number + alphabet.index(char) raw = b"\0" + number.to_bytes(24, "big") assert hashlib.sha256(hashlib.sha256(raw[:-4]).digest()).digest()[:4] == raw[-4:] hrp, data = RECIPIENT.rsplit("1", 1) alphabet = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" symbols = [alphabet.index(char) for char in data] assert hrp == "bc" and RECIPIENT == RECIPIENT.lower() and symbols[0] == 1 assert len(RECIPIENT) <= 90 and len(symbols[1:-6]) == 52 assert symbols[-7] & 15 == 0 # 260 bits encode a 256-bit program. chk = 1 expanded = [ord(c) >> 5 for c in hrp] + [0] + [ord(c) & 31 for c in hrp] for value in expanded + symbols: top = chk >> 25 chk = ((chk & 0x1ffffff) << 5) ^ value for bit, gen in enumerate((0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3)): if top & (1 << bit): chk ^= gen print("recipient polymod", hex(chk), flush=True) assert chk == 0x2bc830a3 return raw[1:-4] def matches(key, target): public = ec.derive_private_key(key, ec.SECP256K1()).public_key() return any(hash160(public, fmt) == target for fmt in ( PublicFormat.CompressedPoint, PublicFormat.UncompressedPoint)) def hash160(public, fmt): encoded = public.public_bytes(Encoding.X962, fmt) return hashlib.new("ripemd160", hashlib.sha256(encoded).digest()).digest() def scan(path, target, visit, fault="", budget=None): scope = json.dumps(["hash160-secp256k1-both-v1", target.hex(), LOW, STOP]) with sqlite3.connect(path, isolation_level="IMMEDIATE") as db: db.execute("PRAGMA synchronous=FULL") db.execute("CREATE TABLE IF NOT EXISTS state (id PRIMARY KEY, scope, cursor, hit)") with db: db.execute("INSERT OR IGNORE INTO state VALUES (1, ?, ?, 0)", (scope, str(LOW))) while budget is None or budget > 0: saved, cursor, hit = db.execute("SELECT scope, cursor, hit FROM state").fetchone() start = int(cursor) if saved != scope or not LOW <= start <= STOP or hit not in (0, 1): raise ValueError("invalid checkpoint") if hit or start == STOP: return end = min(start + CHUNK, STOP) with db: if fault == "early" and start == LOW + CHUNK: db.execute("UPDATE state SET cursor=? WHERE id=1", (str(end),)) db.commit() os.kill(os.getpid(), signal.SIGKILL) for key in range(start, end): visit(key) if matches(key, target): hit = 1 end = key + 1 break db.execute("UPDATE state SET cursor=?, hit=? WHERE id=1", (str(end), hit)) if fault == "before" and start == LOW + CHUNK: os.kill(os.getpid(), signal.SIGKILL) if fault == "after" and start == LOW + CHUNK: os.kill(os.getpid(), signal.SIGKILL) if budget is not None: budget -= 1 def state(path): with sqlite3.connect(path) as db: return db.execute("SELECT cursor, hit FROM state").fetchone() def trial(root, mode, target): path = root / (mode + ".db") trace = root / (mode + ".log") def visit(key): with trace.open("a") as stream: stream.write(f"{key - LOW}\n") t0 = time.perf_counter() if mode in ("early", "before", "after"): pid = os.fork() if pid == 0: scan(path, target, visit, fault=mode) os._exit(17) assert os.waitstatus_to_exitcode(os.waitpid(pid, 0)[1]) == -signal.SIGKILL elif mode == "clean": scan(path, target, visit, budget=1) scan(path, target, visit) elapsed = time.perf_counter() - t0 seen = list(map(int, trace.read_text().splitlines())) cursor, hit = state(path) print(mode, elapsed, len(seen), len(set(seen)), int(cursor)-LOW, hit) return path, seen, hit if __name__ == "__main__": challenge = verify_addresses() assert challenge.hex() == "f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8" synthetic = hash160(ec.derive_private_key(LOW + 383, ec.SECP256K1()).public_key(), PublicFormat.UncompressedPoint) t0 = time.perf_counter() with tempfile.TemporaryDirectory() as directory: root = Path(directory) for mode in ("baseline", "clean", "before", "after", "early"): path, seen, hit = trial(root, mode, synthetic) first = list(range(384)) expected = { "baseline": first, "clean": first, "before": first + first[CHUNK:], "after": first, "early": first[:CHUNK] + list(range(2 * CHUNK, STOP - LOW)), } assert seen == expected[mode] and hit == int(mode != "early") try: scan(path, challenge, lambda _: None) except ValueError: print("scope change rejected") else: raise AssertionError("stale scope accepted") _, seen, hit = trial(root, "challenge", challenge) assert seen == list(range(STOP - LOW)) assert not hit print("total seconds", time.perf_counter() - t0) ```