# Bitcoin Puzzle #71 — compressed versus uncompressed public keys **No solution was found.** The chain snapshot shows #71 still unclaimed. Twenty funded sibling addresses matched compressed public keys, including #70 and #75. #71's own P2PKH output does not identify the encoding. A bounded search checked both encodings for 65,536 distinct candidates and found zero matches. ## Question and assumptions Can #71 be searched safely using only compressed public keys? A scalar `k` gives one secp256k1 point `Q = kG = (x,y)`. The two standard encodings tested here are `(02 or 03) || x` (33 bytes, prefix determined by the parity of `y`) and `04 || x || y` (65 bytes). P2PKH uses RIPEMD-160 of SHA-256 of the exact serialized bytes. Either form gives the same address type and version byte, and their hashes normally differ. The version byte gives no encoding flag. Address prefixes give no evidence of numerical closeness to the scalar. [SECG SEC 1 and SEC 2 v2.0, §2.4.1](https://www.secg.org/) · [Bitcoin Core v29.0 public-key code](https://raw.githubusercontent.com/bitcoin/bitcoin/v29.0/src/pubkey.h) · [Address encoding](https://raw.githubusercontent.com/bitcoin/bitcoin/v29.0/src/key_io.cpp) · [Base58Check implementation](https://raw.githubusercontent.com/bitcoin/bitcoin/v29.0/src/base58.cpp) ## Target, challenge provenance and snapshot - **Target and interval.** The original transaction's zero-based output 70 is P2PKH for `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU` with script `76a914f6f5431d25bbf7b12e8add9af5e3475c44a0a5b888ac`. Local Base58Check decoding recovered the same HASH160. The public Puzzle Hunter listing agrees on the inclusive bounds `0x400000000000000000` through `0x7fffffffffffffffff`, which equal `2^70` through `2^71 − 1` and contain exactly `2^70` scalars. The bounds come from the public challenge record and arithmetic. A P2PKH output commits to a hash and does not certify a scalar's size. [Original funding transaction](https://mempool.space/api/tx/08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15) · [Puzzle Hunter listing, accessed 2026-11-23 UTC](https://coinables.github.io/puzzle/) - **Public challenge invitation.** Bulista publicly presented the original transaction as a prize puzzle on BitcoinTalk on December 28, 2015 at 16:12:47 (guest forum display). On April 27, 2017 at 06:41:08 (guest forum display), `saatoshi_rising` claimed authorship in that thread and described masked consecutive deterministic-wallet keys as a measure of the community's cracking ability. The 2017 transaction described below also spends outputs 160–255 and tops up #71, consistent with part of the account's stated plan. I found the public challenge thread and the later attribution claim. Independent authentication of the pseudonym and a separate creator invitation contemporaneous with the January 2015 funding remain unverified. [Original public thread](https://bitcointalk.org/index.php?topic=1306983.0) · [Authorship post](https://bitcointalk.org/index.php?topic=1306983.msg18765941#msg18765941) - **Chain status.** Mempool.space and Blockstream agreed from **2026-11-23 07:34:21.887 to 07:34:24.231 UTC**, with both reporting tip height **977165** before and after the reads. Each returned **73 confirmed UTXOs totaling 710,196,696 sat (7.10196696 BTC)**, zero confirmed outputs spent, and zero indexed mempool transactions for the address. This supports **unclaimed on-chain** as of the snapshot. An unpublished solution or public key would escape this check. I found no verified #71 public point in the evidence used here. [Mempool.space address stats](https://mempool.space/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU) · [Mempool.space UTXOs](https://mempool.space/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU/utxo) · [Blockstream address stats](https://blockstream.info/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU) · [Blockstream UTXOs](https://blockstream.info/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU/utxo) | Funding UTC | Height | Transaction prefix and vout | Satoshis | |---|---:|---|---:| | 2015-01-15 18:07:14 | 339085 | `08389f34…:70` | 7,100,000 | | 2017-07-11 05:00:53 | 475240 | `5d45587c…:19` | 63,900,000 | | 2023-04-16 06:29:48 | 785620 | `12f34b58…:5` | 639,000,000 | The three principal outputs total 7.1 BTC. The other 70 total 196,696 sat. Both explorers agreed on all outpoints. To compare the snapshot, sort rows in Python as `(txid, vout, value, status["block_height"])`, serialize with `json.dumps(rows, separators=(",", ":"))` and hash the UTF-8 bytes with SHA-256. The recorded digest was `0c928c9b800f78dc7116611ef230588e44ca7c55dc67db2b431b2e183cd83854`. [2017 top-up](https://mempool.space/api/tx/5d45587cfd1d5b0fb826805541da7d94c61fe432259e68ee26f4a04544384164) · [2023 top-up](https://mempool.space/api/tx/12f34b58b04dfb0233ce889f674781c0e0c7ba95482cca469125af41a78d13b3) **Designated recipient.** The exact supplied `bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx` passed the mainnet `bc` HRP, case, Bech32m checksum, version 1, zero padding, and 32-byte program checks. The decoded x-coordinate also lifted to a secp256k1 point. The program is `46bfc36cb0a801aa7d19aff5ceffc6735d461e99bebd4c6c7fa3b2fbae2c0a6f`. This validates the separate Taproot recipient’s encoding. No transaction was created, signed or broadcast. [BIP 350, 2020-12-16](https://bips.dev/350/) · [BIP 341, 2020-01-19](https://bips.dev/341/) ## Executed encoding audit and bounded searches **Sibling commitments.** For each input of transaction `17e4e323…` at height **578732**, block timestamp **2019-06-01 02:07:26 UTC**, I took the final pushed public key from the input script and compared its HASH160 to the previous output's P2PKH script. I then recovered `y` from `x` using the `02`/`03` parity and hashed the 65-byte encoding of the same point. I matched the previous output scripts to the original funding transaction. All **20** puzzle-linked inputs (#65, #70, …, #160) matched compressed and **0** matched uncompressed. One further compressed input had no matching script in the original funding transaction and is outside the 20. The sample comes from one targeted set of revealed siblings and gives no calibrated probability for #71 or evidence about the original wallet's native format. [2019 input scripts and prevouts](https://mempool.space/api/tx/17e4e323cfbc68d7f0071cad09364e8193eedf8fefbcbd8a21b4b65717a4b3d3) **Local controls.** Independently initialized scalar multiplications generated both hashes for 16 pseudorandomly selected scalars in `[4096, 8191]`, using seed 71 for reproducibility. All 32 synthetic targets were distinct. Incremental enumeration over that full range recovered 16/32 with compressed only, 16/32 with uncompressed only, and 32/32 with both, with no unintended matches. The code also checks two known P2PKH encodings for the generator point and rejects a one-character recipient checksum mutation. The balanced synthetic set tests coverage and the failure of single-format search when the other format was used. It does not model the creator's selection. **#71 search.** Three repeated full passes per mode checked the same fixed block `0x400000000000000000` through `0x40000000000000ffff`, with rotating mode order and zero hits. Total coverage was 65,536 distinct scalars. The dual-mode pass checks 131,072 serialized public keys within that block. Timing used one CPU thread, CPython 3.12.3 and a virtual x86-64 Intel Core Processor reporting Haswell, no GPU. Each measured pass includes initial scalar multiplication, affine point stepping, serialization, hashing and match lookup. | Mode | Wall times (seconds) | Median scalar throughput | |---|---|---:| | Compressed | 2.273611, 2.265506, 2.244709 | 28,928/s | | Uncompressed | 2.274390, 2.286167, 2.235435 | 28,815/s | | Both | 2.467101, 2.451094, 2.470589 | 26,564/s | Dual mode took **8.9%** more wall time than compressed-only at the median in the first run and **13.8%** on rerun (25,164 dual-mode scalars/s). Each scalar requires one point calculation in either case. The incremental affine additions dominate here, so the overhead could differ in a native batched implementation. ## Algorithm applicability, limits and next experiment - **Enumeration** needs the generator, interval, and target HASH160, all available. Incremental addition shares curve work across both encodings. A conventional single-format search can discard the correct scalar when its other encoding is the one committed. The sibling evidence favors compressed as a priority under limited throughput, while dual-mode enumeration excludes both standard encodings for the blocks actually covered. - **Baby-step giant-step and Pollard kangaroo** require the target point `Q`. With `Q` and the lower endpoint `L`, the short-interval problem is to find `k−L` from `Q−LG`. The square-root scale is then `2^35` group operations up to algorithm-dependent factors, with a similarly scaled table for conventional BSGS and much less memory for kangaroo. The published #71 HASH160 supplies neither coordinates nor an additive group relation for these algorithms. Knowing the likely encoding does not supply the point. Sibling points also do not supply a demonstrated scalar offset to #71. [Fowler and Galbraith, 2015](https://arxiv.org/abs/1501.07019) - **Extrapolation.** This run covered `2^-54` of the scalar interval, approximately `5.55 × 10^-17`. Under a uniform location model and one correct scalar, that is also the chance the fixed block contains the solution. Sustaining the measured dual-mode rate across the full space would take about **1.41 billion years** on one thread. - **Next experiment.** On the same available CPU, compare the two modes with batched point generation on identical synthetic ranges first. Run five paired passes over `2^20` scalars per pass and plant four held-out hash targets of each encoding at pseudorandom offsets, including batch boundaries as separate fixtures. Require exact hit and miss agreement with the reference implementation on those fixtures. Compare the median unique scalars/s and the dual-mode overhead before assigning a disjoint #71 block. This measures whether the near-9% premium survives faster curve arithmetic, which is the practical uncertainty for deciding which encodings to test. ## Reproduce the local tests Run the following with Python 3.12 and a `hashlib` build exposing RIPEMD-160. A target hit stops with a generic message for secure verification. ```python from hashlib import new, sha256 from random import Random from statistics import median from time import perf_counter P = 2**256 - 2**32 - 977 G = (0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798, 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8) A = "1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU" R = "bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx" def add(a, b): if a is None: return b if b is None: return a x, y = a u, v = b if x == u and (y + v) % P == 0: return None m = ((3*x*x * pow(2*y, -1, P)) if a == b else ((v-y) * pow(u-x, -1, P))) % P r = (m*m - x - u) % P return r, (m*(x-r) - y) % P def point(k): out, b = None, G while k: if k & 1: out = add(out, b) b = add(b, b) k >>= 1 return out def h160(data): return new("ripemd160", sha256(data).digest()).digest() def digest(q, mode): x, y = q xb = x.to_bytes(32, "big") if mode == "C": return h160(bytes([2 + (y & 1)]) + xb) return h160(b"\x04" + xb + y.to_bytes(32, "big")) def target_hash(address): alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" n = 0 for c in address: n = 58*n + alphabet.index(c) raw = (b"\0" * (len(address) - len(address.lstrip("1"))) + n.to_bytes((n.bit_length()+7)//8, "big")) assert len(raw) == 25 and raw[0] == 0 assert sha256(sha256(raw[:-4]).digest()).digest()[:4] == raw[-4:] return raw[1:-4] def witness(address): assert address == address.lower() and len(address) <= 90 hrp, data = address.rsplit("1", 1) alphabet = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" values = [alphabet.index(c) for c in data] expanded = [ord(c) >> 5 for c in hrp] + [0] + [ord(c) & 31 for c in hrp] check = 1 generators = (0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3) for item in expanded + values: top = check >> 25 check = ((check & 0x1ffffff) << 5) ^ item for i, gen in enumerate(generators): if top & (1 << i): check ^= gen assert hrp == "bc" and values[0] == 1 and check == 0x2bc830a3 bits = "".join(f"{v:05b}" for v in values[1:-6]) pad = len(bits) % 8 assert pad < 5 and (pad == 0 or int(bits[-pad:], 2) == 0) program = bytes(int(bits[i:i+8], 2) for i in range(0, len(bits)-pad, 8)) assert len(program) == 32 return program def scan(lo, count, modes, targets): q = point(lo) hits = [] for k in range(lo, lo+count): for mode in modes: d = digest(q, mode) if d in targets: hits.append((k, mode, d)) q = add(q, G) return hits target = target_hash(A) assert target.hex() == "f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8" assert digest(G, "C") == target_hash("1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH") assert digest(G, "U") == target_hash("1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm") program = witness(R) x = int.from_bytes(program, "big") assert x < P and pow((x**3 + 7) % P, (P-1)//2, P) == 1 print("recipient", program.hex()) try: witness(R[:-1] + "q") except AssertionError: pass else: raise AssertionError("accepted changed checksum") lo, count = 1 << 12, 1 << 12 rng = Random(71) ks = rng.sample(range(lo, lo+count), 16) expected = {(k, mode, digest(point(k), mode)) for mode in "CU" for k in ks} targets = {d for _, _, d in expected} assert len(targets) == 32 for modes in ("C", "U", "CU"): hits = scan(lo, count, modes, targets) assert set(hits) == {h for h in expected if h[1] in modes} print("toy", modes, len(hits)) lo, count = 1 << 70, 1 << 16 times = {mode: [] for mode in ("C", "U", "CU")} for order in (("C", "U", "CU"), ("U", "CU", "C"), ("CU", "C", "U")): for modes in order: start = perf_counter() hits = scan(lo, count, modes, {target}) times[modes].append(perf_counter() - start) assert not hits, "match detected, use secure verification" for modes, runs in times.items(): print(modes, [round(t, 6) for t in runs], round(count/median(runs))) ``` For the sibling audit, append the following to the Python block and run with network access. ```python from json import load from urllib.request import urlopen def transaction(txid): with urlopen("https://mempool.space/api/tx/" + txid, timeout=15) as response: return load(response) funded = transaction("08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15") spent = transaction("17e4e323cfbc68d7f0071cad09364e8193eedf8fefbcbd8a21b4b65717a4b3d3") index = {o["scriptpubkey"]: i for i, o in enumerate(funded["vout"], 1)} puzzles, outside = [], 0 for vin in spent["vin"]: raw = bytes.fromhex(vin["scriptsig_asm"].split()[-1]) script = vin["prevout"]["scriptpubkey"] assert len(raw) == 33 and raw[0] in (2, 3) assert script == "76a914" + h160(raw).hex() + "88ac" x = int.from_bytes(raw[1:], "big") y = pow((x**3 + 7) % P, (P+1)//4, P) assert y*y % P == (x**3 + 7) % P if y % 2 != raw[0] % 2: y = P-y assert script != "76a914" + digest((x, y), "U").hex() + "88ac" if script in index: puzzles.append(index[script]) else: outside += 1 assert sorted(puzzles) == list(range(65, 161, 5)) and outside == 1 print(sorted(puzzles), outside) ```