Skip to main content

Cheon Attack Cost Calculator

A powers-of-tau ceremony publishes points [s^i]P for a secret s. Those auxiliary points enable Cheon's attack, a discrete log with auxiliary input that is much cheaper than breaking the curve outright. Pick your curve and how many powers your setup exposes, and see the real attack cost under every published cost model - from Cheon's 2006 paper to the October 2026 state of the art. Based on the attack ladder documented in the curvesma.sh analysis.

Setup

Cheon applies

Group order r ≈ 2^254.86. Largest power-of-2 divisor of r - 1: 2^32. Attack divisor d = 1048576 (2^20), subgroup search m = (r-1)/d ≈ 2^234.86.

With 2^20 powers published, the best known attack costs ~2^116.33 operations - 10.1 bits cheaper than breaking the curve outright. Comfortably out of reach of any realistic adversary, but each doubling of published powers buys the attacker another 0.5 bits.

Cost modelTotal workvs rhoWhy
Pollard rho (no auxiliary powers)2^126.460.00 bitsBaseline without the powers. Automorphism-folded, rho constant.
Cheon (2006)2^125.211.25 bitsFull scalar multiplication per step: the log r factor eats most of the gain.
KKM (2007)2^117.868.60 bitsPrecomputed tables make each step O(1): 2.353 reference units.
Additive walk (Oct 2026)2^116.959.52 bitsSingle curve addition per step via small-gap jump tables: 1.245 units.
Paired walk, state of the art (Oct 2026)2^116.3310.14 bitsTwo points per inversion: ~0.81 units per point, plus assembly tuning.

Phase 2 (recovering the final log2(d) bits) costs ~2^11.00 extra steps - invisible at this scale. Step counts use the curvesma.sh conventions: 39% success target, six-fold GLV folding, work measured in batched-affine-addition reference units.

What Cheon's attack actually does

The setup hands over leverage. A trusted setup publishes [s]P, [s^2]P, ... [s^n]P so provers can build SNARK circuits. Cheon's attack uses exactly those extra points: for a divisor d of r - 1 with d ≤ n, the attacker works in the subgroup of d-th powers, a space 2^log2(d) times smaller than the full scalar field.

Two phases. Phase 1 is a meet-in-the-middle inside that subgroup, costing ~2 x sqrt((r-1)/d). Phase 2 strips the remaining log2(d) bits for a negligible 2 x sqrt(d) steps. The cost model table above walks the whole published lineage: Cheon 2006 (scalar-multiply per step), KKM 2007 (table-based O(1) steps), the October 2026 additive and paired walks that halved the per-step constant.

The tradeoff knob is d. Every doubling of d halves the Phase 1 search (0.5 bits cheaper) - but d must divide r - 1 and you must own the point [s^d]P, which is exactly why publishing more powers is not free. You cannot derive [s^2d]P from [s^d]P: that is the computational Diffie-Hellman problem.

Why BLS12-381 is juicy. Its r was chosen so 2^32 divides r - 1, because radix-2 FFTs over the scalar field make SNARK proving faster. The same SNARK-friendly structure feeds the attack: every divisor up to 2^32 is available if the ceremony publishes that many powers.

Practical guidance for ceremony organizers

Publish the minimum power count your circuit needs. The 0.5-bit-per-doubling rule means a ceremony that publishes 2^32 powers instead of 2^20 hands the attacker ~6 bits for free.

Toxic waste discipline: even at ~2^117 attack cost, the secret s is only safe because nobody can spend 2^117 operations. Never reuse the ceremony secret as a signing key, wallet key, or anywhere it faces a cheaper attack surface.

Fresh randomness beats size: a small honest ceremony (one truly random contribution) is stronger than a large ceremony where every participant is compromised. The attack needs the actual s, not just the transcript.

FAQ

Is my Groth16 trusted setup broken?

No. Even state-of-the-art attacks on a 2^20-power BLS12-381 setup cost ~2^117 operations - astronomically beyond any realistic adversary. The calculator shows the margin, not a break. The risk matters for secrets that must stay secret for decades or setups that publish very large power counts.

Does this affect BN254 circuits?

Yes, with a caveat: BN254's r - 1 is divisible by 2^28 (select it above to see its numbers). The same Cheon machinery applies whenever the published powers reach a divisor of r - 1. Its 254-bit order also gives less rho headroom than BLS12-381's curve structure in practice.

What are the reference units in the cost model?

The curvesma.sh benchmark counts one unit as one batched affine point addition (six base-field multiplications, 2000 AArch64 instructions). The October 2026 contest measured how far the per-step constant could be pushed down; the best submissions reached roughly 0.81 units per point.

Why only power-of-2 divisors by default?

The 2-adic valuation of r - 1 is cheap to compute in your browser and covers the standard case (radix-2-friendly curves). Any divisor of r - 1 works with Cheon; if you know your curve has a useful odd divisor (from a known factorization of r - 1), enter it in the custom d field.

How is this different from just breaking BLS12-381?

Plain discrete log on the curve needs ~2^126 operations. Cheon's attack exploits the auxiliary published points to cut that by ~10 bits for BLS12-381 with 2^20 powers. The curve is not weaker - the ceremony transcript is the extra attack surface.

All math runs locally with BigInt in your browser. Nothing is uploaded. Pair this with our Groth16 Proof Verifier to inspect what these setups produce.