# Workstream 39: compressed and uncompressed derivation **Result: no Puzzle #71 solution found.** A bounded scan of 1,024 target-range scalars found no match in either encoding. The principal result is a reproducible correctness check; it does not establish which encoding the unknown key used. ## Question and verified facts Does a search derive both legacy P2PKH variants correctly, and could ignoring one miss the target? Assume secp256k1 and the published inclusive interval, not a key-generation pattern. The [Puzzle71 tracker](https://p71.org/puzzle) and [independent range listing](https://coinables.github.io/puzzle/), accessed 2026-11-23 07:33 UTC, give target `1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU`, `0x400000000000000000` to `0x7fffffffffffffffff`, and reports it unclaimed. This is 2^70 through 2^71−1 inclusive, exactly 2^70 candidates. The address independently decodes below as mainnet P2PKH with valid Base58Check and HASH160 `f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8`. The interval and address are challenge assertions, not derivable from one another. The [early public challenge thread](https://bitcointalk.org/index.php?topic=1306983.0), started 2015-12-28, describes a prize to whoever solves the puzzle. The original poster said they discovered the transaction, not that they funded it. In a [2017-04-27 post](https://bitcointalk.org/index.php?topic=1306983.msg18765941), an account claiming authorship describes masked deterministic-wallet keys; that identity claim is not independently established. No earlier signed invitation by the funder was located. At 2026-11-23 07:33 UTC, [mempool.space address data](https://mempool.space/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU) reported 73 confirmed incoming outputs, zero spent outputs and zero mempool activity. The [UTXO endpoint](https://mempool.space/api/address/1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU/utxo) returned 73 confirmed unspent outputs totaling **710,196,696 satoshis (7.10196696 BTC)**; 7.1 BTC is the nominal prize, with extra deposits. The three largest outputs are 7,100,000 sat at block 339085, 63,900,000 sat at 475240 and 639,000,000 sat at 785620. The explorer's [tip](https://mempool.space/api/blocks/tip/height) was 977165 at the same check; these live API calls are not an atomic, independently validated node snapshot. The live endpoints can change. This supports “unspent”, not proof that nobody privately knows the key. No conflict requiring the work to stop was found. The designated **recipient**, not the target, is `bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx`. The local check below verifies lowercase mainnet HRP `bc`, Bech32m checksum, witness version 1, canonical padding and 32-byte witness program, following [BIP 350](https://bitcoin.org/bip/350/). It does not establish control of the destination. No transaction was constructed or broadcast. ## Method and executed results For scalar k, compute Q=kG. Uncompressed SEC serialization is `04 || x || y` (65 bytes); compressed is `02/03 || x` (33 bytes), prefix determined by y parity. Each encoding is hashed separately as RIPEMD160(SHA256(serialized Q)); mainnet P2PKH adds version 00 and four-byte double-SHA256 checksum before Base58 encoding. Thus one point usually yields different addresses; using only one form can miss an otherwise valid match. The [Bitcoinbook explanation](https://raw.githubusercontent.com/bitcoinbook/bitcoinbook/develop/ch04_keys.adoc) discusses this distinction. A P2PKH hash does not identify the encoding or reveal the point; no verified target public point was located, consistent with the [tracker](https://p71.org/puzzle). A point-discrete-log kangaroo search requires that point and the interval; the address alone supplies only its hash, so this work cannot apply kangaroo directly. Address prefix similarity gives no evidence of numerical private-key closeness. Executed 2026-11-23 UTC on one CPU, reported model `DO-Regular`, Python 3 and cryptography 41.0.7, with OpenSSL-backed secp256k1 and RIPEMD160. Timings are wall-clock, one run, not a benchmark guarantee: - Independently coded affine EC multiplication/serialization agreed byte-for-byte with the library on 131 scalars (1, 2, curve order−1, and 128 seeded pseudorandom scalars), in both encodings: 262 checks, 68 even and 63 odd y values; 3.679 s. Scalar 1 also passed two fixed expected-address vectors. No independent implementation cross-check was performed for Base58 beyond these vectors. - A synthetic 9-bit interval [512,1023], generated with known scalar 777, was exhaustively searched against both of its separately derived hashes. Each produced exactly one hit, scalar 777; 1.207 s. This is a non-sensitive local test key, not a wallet or recipient. - Target interval [2^70, 2^70+1023] was checked in both forms: 2,048 full HASH160 comparisons, zero matches; 2.312 s (about 443 candidate scalars/s, including two independent library point multiplications per candidate). This is a tiny nonrandom contiguous sample: its negative result gives no evidence of a general pattern or preferred encoding. **Extrapolation, not measurement:** at this observed unoptimized rate, exhaustive 2^70 candidates would take about 8.5e10 years; expected half-range time under a uniform location assumption is half that. Real optimized implementations and hardware differ enormously; no extrapolation predicts actual solver throughput. The seeded comparison checks correctness, not pattern claims: no secret-key pattern hypotheses or significance tests were performed. Any future pattern claim needs held-out cases, random baselines, and multiple-hypothesis correction. ## Reproduce Save the code below as `derive39.py`; run `python3 derive39.py` with Python 3, `cryptography` 41.0.7 and a hashlib provider supporting RIPEMD160. It needs no network or other project files. The seeded generator is for tests only. It prints counts and timings, never a target candidate key. The tiny target loop is deliberately fixed and bounded; it does not support arbitrary ranges or claiming funds. ```python import hashlib, time, random from cryptography.hazmat.primitives.asymmetric import ec from cryptography.hazmat.primitives import serialization P=2**256-2**32-977 G=(0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798, 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8) N=0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141 def add(a,b): if a is None: return b if b is None: return a x,y=a; X,Y=b if x==X and (y+Y)%P==0: return None m=((3*x*x)*pow(2*y,-1,P) if a==b else (Y-y)*pow((X-x)%P,-1,P))%P z=(m*m-x-X)%P return z,(m*(x-z)-y)%P def mul(k): r=None; q=G while k: if k&1: r=add(r,q) q=add(q,q); k>>=1 return r def enc(q,compressed): x,y=q return (bytes([2+(y&1)])+x.to_bytes(32,'big') if compressed else b'\x04'+x.to_bytes(32,'big')+y.to_bytes(32,'big')) def h160(b): return hashlib.new('ripemd160',hashlib.sha256(b).digest()).digest() alphabet='123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def b58decode(s): n=0 for c in s: n=n*58+alphabet.index(c) raw=n.to_bytes((n.bit_length()+7)//8,'big') return b'\0'*(len(s)-len(s.lstrip('1')))+raw def b58encode(b): n=int.from_bytes(b,'big'); out='' while n: n,r=divmod(n,58); out=alphabet[r]+out return '1'*(len(b)-len(b.lstrip(b'\0')))+out def addr(b): v=b'\0'+h160(b); return b58encode(v+hashlib.sha256(hashlib.sha256(v).digest()).digest()[:4]) def pub(k,c): return ec.derive_private_key(k,ec.SECP256K1()).public_key().public_bytes( serialization.Encoding.X962, serialization.PublicFormat.CompressedPoint if c else serialization.PublicFormat.UncompressedPoint) def check_recipient(s): chars='qpzry9x8gf2tvdw0s3jn54khce6mua7l'; gen=[0x3b6a57b2,0x26508e6d,0x1ea119fa,0x3d4233dd,0x2a1462b3] assert s==s.lower() and len(s)<=90 and s.rfind('1')==2 and s[:2]=='bc' d=[chars.index(x) for x in s[3:]]; chk=1 for v in [ord(x)>>5 for x in 'bc']+[0]+[ord(x)&31 for x in 'bc']+d: top=chk>>25; chk=((chk&0x1ffffff)<<5)^v for i in range(5): if (top>>i)&1: chk^=gen[i] assert chk==0x2bc830a3 and d[0]==1 acc=bits=0; out=[] for v in d[1:-6]: acc=(acc<<5)|v; bits+=5 while bits>=8: bits-=8; out.append((acc>>bits)&255) assert bits<5 and ((acc<<(8-bits))&255)==0 and len(out)==32 return len(out) target='1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU' b=b58decode(target); assert len(b)==25 and b[0]==0 and hashlib.sha256(hashlib.sha256(b[:-4]).digest()).digest()[:4]==b[-4:] assert addr(pub(1,True))=='1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH' assert addr(pub(1,False))=='1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm' assert check_recipient('bc1pg6luxm9s4qq65lge4l6ual7xwdw5v85eh675cmrl5we0ht3vpfhswxu0cx')==32 r=random.Random(39); start=time.perf_counter(); parity=[0,0] for k in [1,2,N-1]+[r.randrange(1,N) for _ in range(128)]: q=mul(k); parity[q[1]&1]+=1 for c in [True,False]: assert enc(q,c)==pub(k,c) print('crosschecks=131 encodings=262 parity=',parity,'seconds=',round(time.perf_counter()-start,3)) # Secret for the small synthetic puzzle is deterministic and non-sensitive. small=777; wanted=[h160(pub(small,c)) for c in [True,False]] start=time.perf_counter(); hits=[[],[]] for k in range(512,1024): for i,c in enumerate([True,False]): if h160(pub(k,c))==wanted[i]: hits[i].append(k) assert hits==[[small],[small]] print('toy=512 candidates, both hits',hits,'seconds=',round(time.perf_counter()-start,3)) start=time.perf_counter(); hits=0 for k in range(2**70,2**70+1024): for c in [True,False]: hits+=h160(pub(k,c))==b[1:-4] print('target=1024 candidates, 2048 hashes, matches=',hits,'seconds=',round(time.perf_counter()-start,3)) ``` ## Limitations and next experiment The toy search shares HASH160 and comparison code with the target scan, and fixed vectors plus independent point checks do not prove every implementation path correct. Sampled scalars do not prove either serialization was used by the unknown target. The test does not identify an exploitable key-generation bias or solve the 71-bit search. Next, reproduce the same vectors and toy search in an independently maintained secp256k1 implementation, add malformed serialization and Base58Check negative vectors, and compare both encodings against independently verified challenge outputs before attempting a larger, explicitly bounded scan. If a matching key is ever found, disclose only nonsensitive verification and arrange a separate secure claiming process.