Docs
How Crackpot works
How it works
A pool of players cracks small elliptic-curve locks for a bank, forever. A lock is a discrete log on a fresh curve y2 = x3 + 7 (Bitcoin's equation) over p = 2k - c, with k from 40 to 126 bits. Players buy a ticket (the tickets are the whole bank), run Pollard rho off chain (in the browser or the CLI miner) and commit, then reveal, distinguished points (DPs).
The program recomputes every DP from fixed-base tables and stores an 8-byte tag on a shared board. When a DP lands on a tag that is already there with other scalars, the program itself computes the key d, checks d·G = Q, and the lock is cracked. The fee goes to the treasury, a bonus to the finisher, the rest pro rata to DP shares. The next lock opens at once, and its size moves toward the target crack time. No coin is needed to play, and there are no timers.
A lock's life
- Seeding. The lock waits 8 slots, then takes its seed from the slot hash of the first slot at or after its target, mixed with the previous key.
- Proving. Anyone proposes a curve (c, n, beta) for the seed; the program proves it step by step on chain: hash-to-curve G, n·G = O, 16 Miller-Rabin rounds for p and for n, hash-to-curve Q. A bad candidate fails and the lock goes back to Seeded.
- Building. The fixed-base tables for G and Q are built, one row per instruction. The last row clears the board and opens the lock.
- Open. Players commit and reveal DPs. Tickets can be bought from Seeding until the crack.
- Cracked. A short grace window (150 slots on mainnet) lets an older committed list take the finisher over. Then claims open, the fee is paid and the next lock opens.
Shares and the crack
A reveal carries up to 16 DPs of 48 bytes each (a, b, x). For each one the program checks a, b < n, x < p, that x is the x of aG + bQ, that x is the class representative min(x, beta·x, beta2·x), and that its low dp bits are zero. A new tag is a share worth 2(dp_now - dp_base). A tag hit with other scalars solves the lock: d = (a1 -+ a) / (+-b - b1) mod n, checked against Q. The same or negated scalars are a duplicate and are refused.
dp_base = max(0, floor((k - 1 - 2·floor(log2 T)) / 2)); at T = 4096 that is (k - 26) / 2. The DP difficulty rises by one bit each time the board reaches 2T, 3T, ... inserts, so the board never fills up.
Commits come first so nobody can copy your DPs from the mempool: hash = sha256("CRACKPOT/commit" || lock || player || list). The reveal must land in a later slot. A key found off chain goes the same way with sha256("CRACKPOT/crack" || lock || player || d), then crack(d).
The split, exactly
At the crack, with B the booked bank: fee = 5% of B to the treasury, bonus = 10% of B to the finisher, carry to the next bank = 0% (set by params, paid only when at least 3 tickets hold shares), pool = the rest. Each ticket is paid floor(pool × shares / total shares), plus the bonus for the finisher, who always holds a ticket. If nobody holds shares the pool rolls into the next bank. Dust, an unshared pool and stray lamports go to the next lock's bank.
Every lamport is accounted for: per lock, paid + fee + residual = bank. Tickets close back to their owners at claim, locks close back to whoever paid their rent.
Params
Copied into every lock when it is created. Changes are timelocked 24 hours and apply only to locks created later.
| Param | Mainnet default | Bounds | Live now |
|---|---|---|---|
| Ticket | 0.02 SOL | 0.001 - 1 SOL | - |
| Fee (treasury) | 5% | 0 - 15% | - |
| Finisher bonus | 10% | 0 - 25% | - |
| Carry to next bank | 0% | 0 - 10% | - |
| Target crack time | 1 hour | 5 min - 7 days | - |
| Lock size (start / min / max) | 48 / 40 / 126 bits | 40 - 126 | - |
| DP target T | 4096 | 1024 - 16384 | - |
| Grace window | 150 slots | 32 - 1500 | - |
Next lock size: delta = round(2·log2(target / time taken)), clamped to ±4 bits. Fixed: 16 DPs and 4 priors per reveal, board of 16384 tags (128 KB), 64 probes.
Mining
Browser. The miner page runs one Web Worker per thread you pick, each walking in WebAssembly (about 1.6 M steps a second per thread). It buys your ticket, commits each batch and reveals it in the next transaction, which also commits the next batch. Your wallet signs each one.
Native. The CLI miner is multi-threaded (about 6 M steps a second per x86 thread). It buys the ticket, reveals until the lock cracks and claims after the grace window:
RPC=<rpc> node tests/crackpot-mine.mjs --key wallet.json --threads 8 --walks 256 --claimEvery client walks the same rule (walk v1): class {±P, ±wP, ±w2P}, a table of 1024 steps R_j = c_j G + d_j Q from sha256("CRACKPOT/walk" || seed || j), so trails from the browser, the CLI and any GPU port meet on one board.
Trust points
- Keeper. Liveness only: it seeds, proves, builds, pushes claims and opens the next lock. Every one of those steps is open to anyone. A bad curve candidate fails on chain.
- Admin. Params (timelocked, bounded, future locks only), the treasury address, a pause that stops ticket sales only. No path to a bank, a ticket or a live lock.
- The site and its API. Display and reveal priors only. A wrong prior just makes your reveal fail: the chain checks everything.
- Seed. The slot hash of the first slot at or after the target, plus the previous key. A leader who grinds his hash gains nothing: the curve is fresh and nobody can precompute for it.
Honest lines
- On average players lose: the bank comes only from tickets and we take 5% of every cracked bank.
- Stronger hardware takes more: shares are DP counts, and a GPU farm finds more DPs than a laptop.
- A share is a distinguished point, not proven walk work. The chain cannot check that a DP lies on a rho walk. DPs made off the walk cost about 1.5x less, earn full shares and never help the crack. Only the crack pays anyone, and the finisher bonus pays walking.
- A rising record means more GPUs, not a quantum computer. 112-113 bit prime-field ECDLP took a PS3 cluster (2009) and FPGAs (2014).
- Nobody, us included, knows the key of a lock: G and Q come from hash-to-curve on the seed.
- A finisher who already knows d may wait while new tickets come in; anyone else can still crack first through the board.
- An unsolved lock waits forever: no expiry, no refunds. Claims never expire.
Limits
- About T x 2 to 3 DPs fit a lock. One GPU with 65536 walks makes cracks 4 to 6 times longer than ideal, so the level settles 4 to 5 bits lower than raw speed suggests.
- A full board skips new DPs without shares; tag hits still crack and
crack(d)always works. - A finisher's leader could drop a crack tx and replay its DPs; the grace window lets the older commit take the finisher back.
API
Read-only JSON at /api/svc/<route>: lock, lock/:no, lock/:no/walk, dps?lock=&since=, tag/:lock/:tag, ticket/:lock/:wallet, ladder, leaderboard?lock=, leaderboard/all, feed, config, health. Numbers above 253 are decimal strings.
Program cra2RJvmwJp4R7Wa9Sg6Nn5RSexgWCqZgAo4gjtem1x.