# Workstream 35: Deterministic synthetic puzzle test vectors for Bitcoin Puzzle #71 **Solution status: no private key for Puzzle #71 was found or searched for. This workstream builds and validates test infrastructure only.** Sections are labelled measured or extrapolated. ## 1. Question and assumptions Question: can we produce reproducible, self-checking synthetic puzzles that mirror Puzzle #71 exactly (key in `[2^(n-1), 2^n-1]`, compressed-pubkey P2PKH address, address-only disclosure), so that any solver other workstreams write can be tested against known answers before being pointed at the real target? Assumptions: (a) real keys are uniform in `[2^(n-1), 2^n-1]`; the creator only said "consecutive keys from a deterministic wallet (masked with leading 000...0001 to set difficulty)" (source 4), and the 40 solved keys checked below all lie in that interval, consistent with but not proving uniformity; (b) compressed-key P2PKH addresses, verified on-chain for puzzles 1 to 40; (c) no GPU, 2 CPU cores, pure Python. ## 2. Target verification (measured, 2026-11-23 07:34 UTC, chain tip 977165 per mempool.space) - Original challenge transaction `08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15`, block 339085, block time 1421345234 = 2015-01-15 18:07:14 UTC, 256 outputs; output index 70 pays 7,100,000 sat to `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU` (source 1). Output index i corresponds to puzzle i+1, so this is puzzle 71. - Address state: 73 funded outputs, 0 spent, total 710,196,696 sat = 7.10196696 BTC, nothing in mempool (source 2). Largest UTXOs: 6.39 BTC (block 785620, 2023-04-16), 0.639 BTC (block 475240, 2017-07-11), 0.071 BTC (block 339085). Status: **unsolved** as of the query time. A June 2026 report also lists #71 as the lowest unsolved address-only target with about 7.1 BTC (source 5). - Interval `0x400000000000000000..0x7fffffffffffffffff` = `[2^70, 2^71-1]` is the community convention; the creator never published it explicitly. The 2015-12-28 thread opener only says the keys "seem to be generated by some kind of formula" (source 3); the self-identified creator called it "a crude measuring instrument, of the cracking strength of the community" (source 4). - What #71 publicly supplies: the address (HASH160 of the pubkey) only. The address has never spent, so **no public key is on-chain**. BSGS and Pollard kangaroo require the public key and therefore do **not** apply to #71; only hash-and-compare brute force does. - Recipient `bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx` decodes as valid bech32m, hrp `bc`, witness v1, 32-byte program `46bfc36c...2c0a6f` (P2TR). ## 3. Method and reproducible code `synth_puzzle.py` (below, pure Python 3.12, no dependencies) does: 1. **Self-test against the chain**: derives compressed P2PKH addresses for the 40 publicly solved keys of puzzles 1 to 40 and compares them with the 40 first outputs of the 2015 transaction. A mismatch would mean the key list or the derivation is wrong. Embedded: 12 on-chain addresses; with the transaction JSON from `mempool.space/api/tx/` all 40 are checked. 2. **Deterministic vectors**: `key(seed, n) = 2^(n-1) + (HMAC-SHA256(seed, "puzzle-n") mod 2^(n-1))`. Same seed and n always give the same key; different seeds give unrelated keys. A vector carries `n, lo, hi, address, hash160, pubkey, key`. For address-only solver tests hand the solver only `address`/`hash160` (what #71 gives); for pubkey solvers hand it `pubkey`. 3. **Reference solvers** to validate vectors and to measure this machine: `bf` (address-only, incremental `P += G` scan from `lo`), `bsgs`, `kang` (both pubkey-based). 4. **bech32m** decoder for the recipient check. Reproduce: save the script, then `python3 -I synth_puzzle.py selftest`, `... gen imd-ws35-v1 16 20 32 40 71`, `... bf imd-ws35-v1 20`, `... bsgs imd-ws35-v1 40`, `... kang imd-ws35-v1 40`. Canonical vector set (seed `imd-ws35-v1`), address-only part; keys are deterministic so they are omitted here and regenerated by `gen`: | n | address | hash160 | |---|---|---| | 16 | 183xMXfT576K7aDAEQvKkimd6GHFRD2onb | 4d57eb67e9aa77ad9e4d821b2516d6d02fbd4800 | | 24 | 18xxFCjfVbsi6nGimfG9G3jR4zj7zNx3cc | 575ddfddcd442e9a33348921e16727da2b3ab8c5 | | 32 | 13oQKZSYgfGQGkuNKsb15GdeaqjUCxYids | 1eb6da33fc034e7d15d98be7be96c28bc06e772b | | 40 | 166n6ukyTNqcp5ijFBEuUXjHYQo6MyGjRJ | 37f05b9ea81855eb47a58f01e4b542ce5f512a89 | | 48 | 1PyzMubFf6zUEEt8UqAiJLgrA7dFDRtf7n | fc19f175de0facc1db052d2157c9b1e9c94fb01c | | 71 | 19mxhFC9N4McAvs4Jqrm5LPkrhBPJpNyNd | 6041ccab9e7dd110dd35ba10ebfc39acfd12d76c | The n=71 vector shares the real interval and has a known answer, for dry-running full-scale tooling. ```python #!/usr/bin/env python3 """synth_puzzle.py - deterministic synthetic Bitcoin-puzzle vectors + reference solvers (pure Python 3.12). usage: selftest | gen SEED N.. | bf SEED N | bsgs SEED N | kang SEED N | bech32m ADDR A synthetic puzzle of size N mirrors real puzzle #N: key in [2^(N-1), 2^N-1], compressed P2PKH address.""" import hashlib, hmac, sys, time, json P = 2**256 - 2**32 - 977 G = (0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798, 0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8) def add(a, b): if a is None: return b if b is None: return a if a[0] == b[0]: if (a[1] + b[1]) % P == 0: return None l = 3 * a[0] * a[0] * pow(2 * a[1], -1, P) % P else: l = (b[1] - a[1]) * pow(b[0] - a[0], -1, P) % P x = (l * l - a[0] - b[0]) % P return (x, (l * (a[0] - x) - a[1]) % P) def mul(k, pt=G): r = None while k: if k & 1: r = add(r, pt) pt = add(pt, pt); k >>= 1 return r def neg(a): return (a[0], (-a[1]) % P) def cpub(pt): return bytes([2 + (pt[1] & 1)]) + pt[0].to_bytes(32, 'big') def h160(b): return hashlib.new('ripemd160', hashlib.sha256(b).digest()).digest() B58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def b58c(b): b += hashlib.sha256(hashlib.sha256(b).digest()).digest()[:4] n = int.from_bytes(b, 'big'); s = '' while n: n, r = divmod(n, 58); s = B58[r] + s return '1' * (len(b) - len(b.lstrip(b'\0'))) + s def addr_of_point(pt): return b58c(b'\x00' + h160(cpub(pt))) def skey(seed, n): # deterministic synthetic key in [2^(n-1), 2^n-1] d = hmac.new(seed.encode(), f'puzzle-{n}'.encode(), hashlib.sha256).digest() return 2**(n-1) + (int.from_bytes(d, 'big') % 2**(n-1)) def vector(seed, n): k = skey(seed, n); pt = mul(k) return {'n': n, 'lo': hex(2**(n-1)), 'hi': hex(2**n - 1), 'address': addr_of_point(pt), 'hash160': h160(cpub(pt)).hex(), 'pubkey': cpub(pt).hex(), 'key': hex(k)} # Ground truth: outputs 0..39 of tx 08389f34...cd15 (block 339085) are puzzle addresses 1..40; # their solved keys are public. Our derivation must reproduce every on-chain address. KNOWN = {1:0x1,2:0x3,3:0x7,4:0x8,5:0x15,6:0x31,7:0x4c,8:0xe0,9:0x1d3,10:0x202,11:0x483,12:0xa7b, 13:0x1460,14:0x2930,15:0x68f3,16:0xc936,17:0x1764f,18:0x3080d,19:0x5749f,20:0xd2c55,21:0x1ba534, 22:0x2de40f,23:0x556e52,24:0xdc2a04,25:0x1fa5ee5,26:0x340326e,27:0x6ac3875,28:0xd916ce8, 29:0x17e2551e,30:0x3d94cd64,31:0x7d4fe747,32:0xb862a62e,33:0x1a96ca8d8,34:0x34a65911d, 35:0x4aed21170,36:0x9de820a7c,37:0x1757756a93,38:0x22382facd0,39:0x4b5f8303e9,40:0xe9ae4933d6} ONCHAIN = ['1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH','1CUNEBjYrCn2y1SdiUMohaKUi4wpP326Lb','19ZewH8Kk1PDbSNdJ97FP4EiCjTRaZMZQA', '1EhqbyUMvvs7BfL8goY6qcPbD6YKfPqb7e','1E6NuFjCi27W5zoXg8TRdcSRq84zJeBW3k','1PitScNLyp2HCygzadCh7FveTnfmpPbfp8', '1McVt1vMtCC7yn5b9wgX1833yCcLXzueeC','1M92tSqNmQLYw33fuBvjmeadirh1ysMBxK','1CQFwcjw1dwhtkVWBttNLDtqL7ivBonGPV', '1LeBZP5QCwwgXRtmVUvTVrraqPUokyLHqe','1PgQVLmst3Z314JrQn5TNiys8Hc38TcXJu','1DBaumZxUkM4qMQRt2LVWyFJq5kDtSZQot'] def selftest(onchain_file=None): oc = ONCHAIN if onchain_file: oc = [v['scriptpubkey_address'] for v in json.load(open(onchain_file))['vout']] ok = 0 for n, k in KNOWN.items(): if n > len(oc): break a = addr_of_point(mul(k)); good = a == oc[n-1] ok += good if not good: print('MISMATCH puzzle', n, a, oc[n-1]) assert 2**(n-1) <= k < 2**n, n print(f'selftest: {ok}/{min(len(KNOWN),len(oc))} on-chain puzzle addresses reproduced; all keys inside [2^(n-1),2^n-1]') def bf(seed, n): # address-only brute force: incremental P += G over the whole interval (what #71 actually allows) v = vector(seed, n); target = bytes.fromhex(v['hash160']); lo, hi = 2**(n-1), 2**n - 1 t = time.time(); pt = mul(lo); k = lo while k <= hi: if h160(cpub(pt)) == target: break pt = add(pt, G); k += 1 dt = time.time() - t; tested = k - lo + 1 print(json.dumps({'solver':'bf','n':n,'found':hex(k)==v['key'],'tested':tested,'sec':round(dt,2),'keys_per_sec':round(tested/dt)})) def bsgs(seed, n): # needs the PUBLIC KEY (not available for #71) v = vector(seed, n); Q = mul(skey(seed, n)); lo = 2**(n-1); w = 2**(n-1) m = 1 << ((n - 1 + 1) // 2); t = time.time() table = {}; pt = None for j in range(m): # baby: j*G table[(pt[0] if pt else 0)] = j; pt = add(pt, G) mG = mul(m); cur = add(Q, neg(mul(lo))) # cur = (k-lo)G i = 0; found = None while i * m <= w: x = cur[0] if cur else 0 if x in table: j = table[x]; cand = lo + i * m + j if mul(cand) == Q: found = cand; break cand = lo + i * m - j if cand >= lo and mul(cand) == Q: found = cand; break cur = add(cur, neg(mG)); i += 1 dt = time.time() - t print(json.dumps({'solver':'bsgs','n':n,'found':found is not None and hex(found)==v['key'],'ops':m+i,'sec':round(dt,2),'ops_per_sec':round((m+i)/dt)})) def kang(seed, n): # Pollard kangaroo (tame/wild, distinguished points); needs the PUBLIC KEY (not available for #71) import math v = vector(seed, n); Q = mul(skey(seed, n)); lo, w = 2**(n-1), 2**(n-1) m = (n - 1) // 2 + 3; jumps = [1 << i for i in range(m + 1)]; JP = [mul(j) for j in jumps] # mean jump ~ sqrt(w)/2 dmask = (1 << max(0, (n - 1) // 4 - 2)) - 1; t = time.time(); ops = 0; tame = {}; wild = {}; k = None tk = lo + w // 2; tp = mul(tk); wk = 0; wp = Q # tame at known scalar; wild at Q + wk*G, unknown base k while k is None: if (tp[0] & dmask) == 0: tame[tp[0]] = tk if tp[0] in wild: k = tk - wild[tp[0]] i = tp[0] % len(jumps); tp = add(tp, JP[i]); tk += jumps[i] if (wp[0] & dmask) == 0: wild[wp[0]] = wk if wp[0] in tame: k = tame[wp[0]] - wk i = wp[0] % len(jumps); wp = add(wp, JP[i]); wk += jumps[i]; ops += 2 dt = time.time() - t print(json.dumps({'solver':'kangaroo','n':n,'found':hex(k)==v['key'],'ops':ops,'sec':round(dt,2),'ops_per_sec':round(ops/dt),'expected_2sqrt_w':round(2*math.sqrt(w))})) CH = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l' def bech32m_check(a): # BIP-350 decode: returns (hrp, witver, program) or raises a = a.lower(); hrp, data = a.rsplit('1', 1); vals = [CH.index(c) for c in data] def polymod(v): gen = [0x3b6a57b2,0x26508e6d,0x1ea119fa,0x3d4233dd,0x2a1462b3]; chk = 1 for x in v: b = chk >> 25; chk = ((chk & 0x1ffffff) << 5) ^ x for i in range(5): chk ^= gen[i] if (b >> i) & 1 else 0 return chk exp = [ord(c) >> 5 for c in hrp] + [0] + [ord(c) & 31 for c in hrp] const = polymod(exp + vals); ver = vals[0] acc = bits = 0; out = [] for x in vals[1:-6]: acc = (acc << 5) | x; bits += 5 while bits >= 8: bits -= 8; out.append((acc >> bits) & 255) assert const == (0x2bc830a3 if ver else 1), 'bad checksum/encoding' assert ver == 1 and len(out) == 32, 'not a P2TR (witness v1, 32-byte) program' return hrp, ver, bytes(out).hex() if __name__ == '__main__': c = sys.argv[1:] if c[0] == 'selftest': selftest(c[1] if len(c) > 1 else None) elif c[0] == 'gen': print(json.dumps([vector(c[1], int(x)) for x in c[2:]])) elif c[0] == 'bf': bf(c[1], int(c[2])) elif c[0] == 'bsgs': bsgs(c[1], int(c[2])) elif c[0] == 'kang': kang(c[1], int(c[2])) elif c[0] == 'bech32m': print(bech32m_check(c[1])) ``` ## 4. Executed tests, hardware, runtime, results (all measured) Hardware: 2 vCPU Intel Xeon Platinum 8259CL 2.50 GHz, 7.8 GB RAM, no GPU, Python 3.12.3, single-threaded. | test | result | |---|---| | selftest, embedded 12 addresses | 12/12 reproduced, 0.05 s | | selftest vs full tx JSON (40 keys) | 40/40 on-chain addresses reproduced, 0.08 s; all keys inside `[2^(n-1), 2^n-1]` | | determinism | `gen imd-ws35-v1 71` twice: identical md5; seed `other-seed` gives a different key/address | | bf n=16 (two solver processes on the 2 cores) | found, 30,082 keys, 3.38 s, 8,891 keys/s | | bf n=20 (same load) | found, 85,479 keys, 8.85 s, 9,654 keys/s | | bf n=16 (idle, code re-extracted from this file) | found, 30,082 keys, 1.05 s, 28,543 keys/s | | bsgs n=32 | found, 84,089 ops, 8.41 s | | bsgs n=36 | found, 262,741 ops, 27.6 s | | bsgs n=40 | found, 1,123,548 ops, 40.8 s, 27,566 ops/s | | kangaroo n=32 | found, 30,834 ops, 1.96 s (expected ~2 sqrt(w) = 92,682) | | kangaroo n=36 | found, 689,684 ops, 44.1 s (expected 370,728) | | kangaroo n=40 | found, 1,184,064 ops, 76.1 s, 15,562 ops/s (expected 1,482,910) | | kangaroo n=44 | **did not finish** within a 300 s cap; no result | Primitive rates (idle): affine point add 29,284/s; compressed-pubkey + HASH160 319,954/s; scalar multiplication 394/s. Address-only brute force is bound by the point addition: 9.6k keys/s under load, 28.5k keys/s idle. A first kangaroo version with a jump table whose mean was far below sqrt(w) needed 248,110 ops for n=32 (5x the expectation); setting the mean jump to about sqrt(w)/2 cut it to 30,834. ## 5. Extrapolation (not measured) and what it means for #71 Expected work for a uniformly placed key is half the interval, 2^69 = 5.9e20 hash-and-compare steps. At this machine's measured 28.5k keys/s that is about 6.6e8 years. Even a GPU rate of 1e9 keys/s (assumed, not measured here; one tracker cites 1.5e9 keys/s for one RTX 4090, source 6) gives about 1.9e4 years. Address-only brute force is infeasible for any single contributor, and no algorithm tested here changes the exponent because the public key is not available. Kangaroo/BSGS would only become relevant if the holder spends from the address and reveals the pubkey, which would also mean the puzzle is already solved. ## 6. Limitations and next step - Pure Python: rates are 4 to 6 orders of magnitude below optimized GPU tools; the vectors, not the speeds, are the deliverable. - Uniformity of the real keys is an assumption; the vectors are uniform by construction (HMAC output) and cannot reveal structure the real generator might have. Any "pattern" claim from other workstreams should be tested against these random vectors as the null baseline and corrected for multiple hypotheses; address prefix similarity is not numerical closeness. - The n=44 kangaroo run was capped; the solver is verified for n <= 40 only. - The 40 solved keys were recalled, then verified against the on-chain addresses; the verification is what makes them trustworthy. Next experiment: port `bf` to a compiled tool (C/OpenCL) reading the same vector format, require it to recover all canonical vectors n=16..48 before it touches the real address, then use the n=71 synthetic vector to validate range splitting and checkpoint/restart so a silent miss on the real interval is caught. ## Sources (full URLs and verbatim quotes in sources.json) 1 mempool.space API, tx 08389f34...cd15 (read 2026-11-23). 2 mempool.space API, address 1PWo3J... (read 2026-11-23 07:34 UTC). 3 bitcointalk topic 1306983, opening post 2015-12-28. 4 same topic, page .240, creator statement quoted in post #248 (2017-04-27). 5 news.bitcoin.com, 2026-06-23. 6 github.com/roadhero/Bitcoin-Puzzle-Info README.