For mathematical definitions see the top-level Addition Chains.
Field and scalar inversions and square roots in elliptic curve cryptography are often computed in constant time as a fixed power \(x^n\), using a fixed addition chain for \(n\). The chain length is the number of field squarings plus multiplications. This page lists short chains for several standard exponents, including contributions from other searchers. Best known means the shortest chain recorded here. The table marks lengths proved optimal. Every chain can be downloaded and checked.
Preliminary results, updated 23 November 2026.
The table compares Neill Clift's chains with earlier constructions. The squarings and multiplications column gives the operation counts when the chain is used for exponentiation. The column \(s\) is the number of small steps in the displayed chain, so \(l(n)\le\lambda(n)+s\) and \(s(n)\le s\). The number of multiplications can exceed \(s\), because an addition that increases \(\lambda\) counts as a multiplication but not as a small step. The column \(s(n)\ge\) gives the lower bound on the minimum number of small steps established by Crouton.
| Exponent | \(n\) | Previous best | Length | Squarings + mults | \(s\) | \(s(n)\ge\) | Chain |
|---|---|---|---|---|---|---|---|
| secp256k1 field inversion | \(p-3 = 2^{256}-2^{32}-980\) | 269 [1,2] | 268 | 255 + 13 | 13 | 10 | download |
| NIST P-192 field inversion | \(p-2 = 2^{192}-2^{64}-3\) | 203 [2] | 202 | 190 + 12 | 11 | 10 | download |
| M-221 field inversion | \(p-2 = 2^{221}-5\) | 231 [2] | 230 (optimal) | 220 + 10 | 10 | 10 | download |
| E-222 field inversion | \(p-2 = 2^{222}-119\) | 233 [2,3] | 232 | 220 + 12 | 11 | 10 | download |
| Curve1174 field inversion | \(p-2 = 2^{251}-11\) | 262 [5] | 261 | 250 + 11 | 11 | 10 | download |
| E-382 field inversion | \(p-2 = 2^{382}-107\) | 395 [2,3] | 393 | 381 + 12 | 12 | 10 | download |
| M-383 / Curve383187 field inversion | \(p-2 = 2^{383}-189\) | 396 [2] | 395 | 381 + 14 | 13 | 10 | download |
| Curve41417 field inversion | \(p-2 = 2^{414}-19\) | 426 [2] | 424 | 413 + 11 | 11 | 10 | download |
| M-511 field inversion | \(p-2 = 2^{511}-189\) | 524 [5] | 524 | 509 + 15 | 14 | 10 | download |
| NIST P-521 field inversion | \(p-2 = 2^{521}-3\) | 533 [3,4] | 532 | 520 + 12 | 12 | 10 | download |
| NIST P-384 square root | \((p+1)/4\) | 394 [6] | 394 | 381 + 13 | 13 | 9 | download |
[1] B. Smith, The Most Efficient Known Addition Chains for Field Element & Scalar Inversion. [2] M. McLoughlin, addchain results. [3] M. Scott, On inversion modulo pseudo-Mersenne primes, ePrint 2018/1038 (Table 1, counted as \(k-1\) squarings plus the multiplications listed). [4] Length from running the addchain ensemble; no published figure was found.
[5] Kaushik Nath and Palash Sarkar (2018) used 262 steps for Curve1174 and 524 for M-511. Clift saves one step on Curve1174 and matches their M-511 length. [6] Billy Bob Brumley and Kimmo U. Järvinen gave a 394-step P-384 square-root chain in 2008, matching the length shown here. See Fast Point Decompression for Standard Elliptic Curves, Table 4, field (16).
Brian Smith supplied 1,013 scalar-inversion chains for five curves on 1 November 2026. On 22 November he supplied a 563-step P-521 chain, improving Clift's 564-step chain by one. The table gives Smith's best lengths for all five curves. Each exponent is \(n=q-2\), where \(q\) is the group order. The 1,013 chains in the original collection and the later P-521 chain were checked with exact integers. Each begins at 1 and ends at the appropriate group order minus two. Every entry after 1 is the sum of two earlier entries. All chains in each collection are distinct by their numerical entries.
The operation counts are for the downloadable chains. Smith's illustrative cost model values one squaring at 0.8 multiplications, giving a cost of \(0.8S+M\). Actual relative costs depend on the implementation. None of these lengths is proved optimal. The lower bounds for the small steps are generated by searching with crouton for the smallest possible chain.
| Exponent | Length | \(s\) | \(s(n)\ge\) | Squarings + multiplications | Cost | Found by | Chain |
|---|---|---|---|---|---|---|---|
| NIST P-256 scalar inversion | 281 | 26 | 9 | 252 + 29 | 230.6 | Brian Smith (2026) | download |
| Curve25519 scalar inversion | 275 | 23 | 8 | 243 + 32 | 226.4 | Brian Smith (2026) | download |
| secp256k1 scalar inversion | 282 | 27 | 9 | 251 + 31 | 231.8 | Brian Smith (2026) | download |
| NIST P-384 scalar inversion | 419 | 36 | 10 | 377 + 42 | 343.6 | Brian Smith (2026) | download |
| NIST P-521 scalar inversion | 563 | 43 | 9 | 516 + 47 | 459.8 | Brian Smith (personal communication, 22 November 2026) | download |
Each download contains one chain in the one-integer-per-line format below. For the four records from the 1 November collection, the selected chain has the lowest weighted cost among the shortest examples supplied for that curve.
For the 1 November collection, Smith reports using evolutionary search and a dynamic programming approach to tail addends, with promising heads handled separately. These are search methods, not proofs of global optimality. His P-256 and P-384 results supersede the dictionary-method chains previously found here (lengths 286 and 431). The earlier published scalar lengths on Smith's 2017 page were 292 (P-256), 284 (Curve25519), 290 (secp256k1), and 433 (P-384). Michael McLoughlin's addchain results list 283 for Curve25519 scalar inversion.
Brian Smith supplied the original collection by personal communication on 1 November 2026. It was verified on 2 November. His P-521 update was verified on 23 November. The P-384 result updates the previously reported length 420 to 419. The previously recorded small-step lower bounds remain 9 for P-256 and P-384; no new lower-bound computation is claimed here.
The column \(s=\text{length}-\lfloor\log_2 n\rfloor\) gives the number of small steps in the displayed chain, so \(s(n)\le s\). The column \(s(n)\ge\) records lower bounds on the minimum number of small steps, where \(s(n)=\ell(n)-\lfloor\log_2 n\rfloor\). A dash indicates that no lower bound is recorded here. These bounds can be updated independently of the example chains.
Each file lists the chain one element per line in increasing order, starting at 1 and ending at \(n\). Each element after the first is the sum of two earlier elements (possibly the same element twice). The number of lines minus one is the chain length.
Field exponents. Most field exponents have the form \(2^k-c\) or consist of a few long runs of ones. Typical chains build \(2^m-1\) with an exponent chain for \(m\) and append the remaining bits. The new chains choose the opening of the chain (the head) so that it produces both a seed \(2^a-1\) and the constant needed for the low bits, at no extra cost. For example, the Curve1174 chain starts 1, 2, 4, 8, 16, 20, 21, 42, 63, which gives \(2^6-1\) and 21 together. It then builds \(2^{246}-1\) from \(2^6-1\), and finishes with \((2^{246}-1)\cdot 2^5+21\). Every head below 512 and every minimal exponent chain was searched exhaustively within this structure.
Learning from truncated exponents. To find structures the run model misses, each exponent was shrunk to a family of 64-bit numbers with the same low bits and a shorter top run. Optimal chains for these were computed exactly with ac2fastfg. Where the optimal small instances beat the best constructed chain consistently as the run grew, the optimal chains were decoded and the mechanism rebuilt at full size. This is how the P-192 chain was found. With \(a=t-1\) and \(n=2^{3t}-2^t-3\) (P-192 has \(t=64\)):
\(P = 4(2^a-1)+1,\quad T = (2^a-1)\cdot 2^{t+1}+P = 2^{2t}-3,\quad n = T\cdot 2^t + P.\)
Only \(2^{63}-1\) has to be built. The second long run comes from a carry instead of a second exponent chain.
P-521 scalar inversion. Clift's earlier 564-step chain uses the following construction. The exponent \(N=q-2\) is divisible by three, and its leading 262 ones give \(Q=N/3\) an alternating binary prefix \(A_{131}\), where \(A_k=(4^k-1)/3\). The index chain 1 2 3 5 8 16 32 64 67 131 builds this prefix in 269 steps using \(A_{a+b}=2^{2b}A_a+A_b\). Regrouping some additions supplies useful intermediate values. For example, building \(341\) as \(168+(168+5)\) also produces \(173\), which the chain reuses at bit offsets 19, 82 and 203. Five more additions prepare digits for the suffix. Appending the suffix takes 259 doublings and 29 digit additions, reaching \(Q\) in 562 steps. Adding \(Q+Q\) and then \(2Q+Q\) gives \(N\) in 564 steps.
The previous 567-step chain built the full run \(2^{262}-1\) and used 520 squarings and 47 multiplications. At Smith's weighting of 0.8 per squaring and 1 per multiplication, the cost is 459.8 for Smith's 563-step chain, 461.2 for Clift's 564-step chain, 463.0 for the 567-step chain and 465.8 for Smith's 568-step chain.
Scalar exponents. The low halves of scalar exponents are essentially random. The superseded chains (P-256: 286, P-384: 431) came from a dictionary method: \(n\) was written as a sum of terms \(d_i 2^{e_i}\), all the \(d_i\) were built with one addition sequence, and the decomposition was optimised by simulated annealing. The truncation method does not help for exponents of this kind.
Exact searches can handle exponents of several hundred bits when the number of small steps is small, particularly when the exponent has many one bits. The displayed field chains use 10 to 14 small steps. The scalar chains use 23 (Curve25519), 26 (P-256), 27 (secp256k1), 36 (P-384) and 43 (P-521). The truncation experiments give further evidence for the open cases.
Exponents where this work only matched the best known: Curve25519 field inversion (265), P-256 field inversion (266), P-384 field inversion (396), P-224 (234), Goldilocks (460), secp192k1 (205), secp224k1 (238), the Curve25519 \(2^{252}-3\) exponent (262), the secp256k1, P-256, Goldilocks and P-521 square roots, and the former Curve25519 scalar inversion result (283, now superseded by Smith's 275-step chain above).
Neill Clift, neillclift@live.com