# Item 16 — Assess address-prefix heuristics against random baselines **Goal context:** Bitcoin Puzzle #71, address `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU`, private-key interval `0x400000000000000000`–`0x7fffffffffffffffff` (2^70 … 2^71−1). Reward recipient (not the target): `bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx`. **Solution found: NO.** This workstream is a negative-result statistical study, not a key search. --- ## 1. Question and assumptions **Question.** Several "solver" tutorials suggest filtering or prioritising candidate keys by how well the candidate's **address prefix** (leading Base58 characters, or leading HASH160 bits) matches the target's. Does an address prefix carry *any* information about (a) numerical proximity of two private keys, or (b) which range/bit-width a key was drawn from? If prefixes are informative, a prefix filter could prune the 2^70 keyspace; if not, such heuristics are worthless and should be dropped from the goal's candidate approaches. **Assumptions.** - Bitcoin P2PKH address = Base58Check(0x00 ‖ RIPEMD160(SHA256(compressed pubkey))) — verified against the en.bitcoin.it reference and three published puzzle keys (#1,#3,#7) as unit tests. - SHA-256 and RIPEMD-160 behave as random oracles over the key→hash map (standard crypto assumption). Under it, the *prior* expectation is that prefixes are independent of the key, so the null hypothesis is "no association." The burden is on any positive claim. - Full-scale #71 computation is infeasible here (6-core CPU, pure-Python EC). I therefore use **locally generated smaller puzzles** (24–31-bit ranges) and argue the result is hash-structural, hence scale-invariant (the hash does not know the key's bit-width). --- ## 2. Sources with dates (all retrieved 2026-11-23, UTC) - **Target still unspent.** mempool.space API, tip height **977165**, 2026-11-23 ~07:33 UTC: `funded_txo_sum = 710196696` sats (≈7.1019 BTC), `spent_txo_count = 0`, `tx_count = 73`. Cross-checked against blockstream.info (identical figures). Earliest funding block 339085, latest 976128. **UTXO is intact; puzzle #71 is UNSOLVED as of retrieval.** - **Range & origin.** privatekeys.pw/puzzles: "In 2015, someone created this puzzle …"; "The creator selected one private key from each progressively larger range"; BitCrack example keyspace `400000000000000000:7fffffffffffffffff` — matches the brief exactly. - **Original challenge.** bitcointalk.org topic 1306983 (OP 2015-12-28): "those 32.896 BTC were sent to multiple addresses"; "all the private keys of those addresses seem to be generated by some kind of formula." Continuation thread 5218972 lists row `71 | 1PWo3JeB…VzXU | 2361183241434822606847 | UNKNOWN`, and records the 2015-01-15 origin tx in block 339085 and the 2023-04-16 prize top-up (>900 BTC added). Note `2361183241434822606847 = 2^71−1`, the top of the interval — consistent. - **Encoding reference.** en.bitcoin.it (version-1 addresses): "Perform RIPEMD-160 hashing on the result of SHA-256." **Encoding validation (computed locally, not from a source).** - Target: Base58Check decodes to version `0x00`, HASH160 `f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8`, checksum valid. - Recipient: valid **Bech32m**, witness version **1** (Taproot/P2TR), 32-byte program, checksum `0x2bc830a3`, pad bits zero — a well-formed P2TR address. Safe to use as stated; not substituted. **Provenance caveat.** The "formula"/creator narrative is community lore; the creator's handle (saatoshi_rising vs zielar) and intent are **disputed across secondary sources and not authoritatively confirmed.** Nothing in this item depends on that narrative. Key #64 was reportedly generated differently (historical note), another reason not to assume structure. --- ## 3. Method and reproducible code Pure-Python secp256k1 (double-and-add) + SHA256/RIPEMD160 + Base58Check, ~140 lines, no external deps (`test/scratch/prefix_exp.py`, 4.4 KB; positive control `posctl.py`, 0.6 KB). Self-checks: addresses of keys 1, 3, 7 equal the published values before any measurement runs. Three pre-registered hypotheses, each with a random baseline and multiple-testing correction (Bonferroni α = 0.05/3 ≈ 0.0167): - **H1 — bit proximity.** For 30 random target keys in [2^30, 2^31) generate the 1000 *immediate key-neighbours* k+1…k+1000 (incremental EC point addition) and 1000 keys drawn uniformly at random. Statistic: longest common HASH160 **bit** prefix vs the target. Compare near-group to random-group means (Mann–Whitney U, tie-corrected, two-sided). - **H2 — Base58 proximity.** Same design, statistic = shared leading Base58 characters after `1`. - **H3 — range inference.** Can the first Base58 char *predict the key's bit-width* (24/26/28/30)? Train a char→majority-width table on 4000 keys, evaluate held-out accuracy on a disjoint 4000, and compare to a 200-run label-permutation null (empirical p). **Positive control.** A deliberately leaky digest `H(k)=SHA256(k>>4)` (neighbours within 16 share a digest). This confirms the pipeline *can* detect a real prefix leak. Reproduce: `python3 test/scratch/prefix_exp.py 30` and `python3 test/scratch/posctl.py`. --- ## 4. Actual tests, hardware, runtime, results **Hardware:** AMD EPYC, 6 vCPU, Python 3.12.3, single-threaded. ~69 s per seed (30 targets × 2000 keys = 60k EC scalar mults + hashes), plus the H3 block. | Test | Near / model mean | Random mean | Stat | p (2-sided) | Verdict @α=0.0167 | |---|---|---|---|---|---| | H1 bit-prefix, seed 71016 | 0.9944 bits | 1.0014 | z=−0.35 | 0.73 | no effect | | H1 bit-prefix, seed 20261123 | 1.0083 | 1.0008 | z=0.96 | 0.34 | no effect | | H2 Base58-prefix, seed 71016 | 0.0426 chars | 0.0422 | z=0.34 | 0.73 | no effect | | H2 Base58-prefix, seed 20261123 | 0.0459 | 0.0443 | z=1.01 | 0.31 | no effect | | H3 width-from-char, seed 71016 | acc 0.2533 | chance 0.25 | perm p=0.35 | — | no effect | | H3 width-from-char, seed 20261123 | acc 0.2518 | chance 0.25 | perm p=0.45 | — | no effect | | **Positive control** | **near 2.836 bits** | **random 1.010** | — | — | **leak detected ✓** | The near-group bit-prefix mean (~1.0) matches the theoretical expectation for independent uniform hashes: expected longest common leading-bit run ≈ Σ 2^−i = 1.0 bit. Neighbouring keys (k vs k+1) produce **completely uncorrelated** HASH160 values — exactly as the random-oracle assumption predicts, and exactly unlike the positive control. H3 held-out accuracy sits on the 25% chance line with permutation p ≫ 0.05: the first address character is uninformative about the key's magnitude/range. All six real tests pass the Bonferroni threshold as **null**. --- ## 5. Limitations and concrete next step **Limitations.** - Local puzzles are 24–31-bit; #71 is 71-bit. The claim rests on the *structural* argument that SHA256∘RIPEMD160 is bit-width-agnostic, supported by (not proven by) these measurements. - Pure-Python EC capped the sample (~30k pairs/group/seed, 2 seeds). Larger n could detect a vanishingly small effect, but any effect below this sensitivity is operationally useless for pruning 2^70 keys. Power illustrated by the positive control, which this n flags decisively. - Tested two prefix heuristics (bit, Base58) and one range-inference claim; other encodings (e.g. HASH160 hex nibble histograms, suffix patterns) were not swept. - Analysis uses only public data and locally generated instances; no funds moved, no key searched, no transaction broadcast. **Conclusion for the goal.** Address prefixes are **not evidence of numerical closeness** to the private key, and do not reveal the key's range — confirmed empirically with held-out tests, random baselines, multiple-testing correction, and a working positive control. Any #71 "solver" that ranks or filters candidates by address-prefix similarity to the target is sampling at the baseline rate and gives **no speedup** over brute force. Recommend goal synthesis **discard** prefix-matching heuristics. **Best next experiment (cheap, decisive).** Replace the prefix heuristic with the only prefix-like structure that *is* real: a full HASH160 match is the win condition itself, so the right lever is **work per key**, not candidate ranking. Concretely, benchmark an endomorphism/ batch-inversion sequential stepper (BSGS or Pollard kangaroo over the 2^70 interval) measuring keys/sec on this CPU, and extrapolate expected wall-clock for #71 — that quantifies the true barrier (~2^35.5 group ops for kangaroo on a 71-bit interval) instead of chasing nonexistent prefix signal. #71's public key is **not** exposed (address never spent, confirmed §2), so kangaroo/BSGS must run over the key interval, not the discrete-log shortcut.