Every secret in this volume is an exponent. A spending key, the trapdoor of a commitment, the nonce of a signature—each lives in and faces the world only through a group element . The adversary of this section is the patient cryptanalyst who collects those elements from the public record and asks for nothing more than the exponent behind one of them: an adversary who computes discrete logarithms recovers signing keys from verification keys, opens and re-opens commitments at will, and strips the blinding from every rerandomised key the later sections construct. What she can forge is everything; what she must be denied is a single inversion. This section assembles the family of assumptions that deny it: the discrete logarithm problem itself, the ladder of Diffie–Hellman variants above it, the generic-attack bounds that calibrate how hard the problem can possibly be, the composite-order failure mode that squanders that hardness, the elliptic curves on which the remainder of the volume instantiates the family, and the quantum caveat under which the whole edifice stands. Throughout, the lodestar is a single number: the security parameter , read as the bit-length of security demanded. The recurring conclusion is that to obtain bits of security against the best generic attacks the group must have prime order with . Notation is fixed once: denotes a cyclic group of prime order , written multiplicatively until §2.6 switches to the additive notation of elliptic curves.
The stage is a finite cyclic group. Recall from the Math Guide (§“The discrete logarithm problem”) that a group is cyclic if for some generator ; written additively, as we shall write elliptic curves, this reads . If then via , an isomorphism trivial to evaluate forwards—repeated squaring costs group operations—but conjecturally infeasible to invert. That asymmetry is the discrete logarithm problem.
Let be a cyclic group of order , written multiplicatively. For , the discrete logarithm of to the base , denoted , is the unique residue with . Existence follows from and ; uniqueness because forces , whence .
Fix a family of cyclic groups, where has prime order with , together with a sampler that on input outputs a description of . The game runs as follows.
The challenger runs the sampler, draws uniformly, and sends to the adversary .
The adversary outputs .
The game outputs iff .
The DLP assumption for the family states that for every PPT ,
The order is restricted to be prime for reasons that §2.5 makes emphatic: in prime order every non-identity element is a generator, there are no proper nontrivial subgroups through which information can leak, and the problem cannot be split across factors of the order. For now we record the convenience that prime order affords immediately.
In a cyclic group of prime order , the discrete logarithm problem is random self-reducible: an algorithm solving a fraction of instances, over uniformly random , converts into one solving any fixed instance with probability per trial. Consequently worst-case and average-case hardness coincide.
Let succeed on a uniform target with probability . Given a fixed challenge , draw and form . Addition modulo is a bijection and is uniform, so is uniform in and independent of ; hence returns with probability , and subtracting recovers . Each candidate is checked by testing , so failures are recognised. Fresh randomness per trial makes trials independent: of them succeed with probability , overwhelming once . □
Random self-reducibility is the formal licence to speak of “the” hardness of DLP in a group: an average-case solver also solves every fixed instance after rerandomisation. This does not literally make every instance difficult—the logarithm of the identity, for one, is immediate.
The discrete logarithm problem asks to invert exponentiation. Many protocols—the Diffie–Hellman key exchange and ElGamal encryption are the historical motivations—need only a weaker-looking guarantee about the product of two exponents. Suppose Alice publishes and Bob publishes ; their shared secret is , which each computes from the other’s public value and their own exponent. The eavesdropper sees and wants .
With notation as in Definition 2.2, the game runs as follows: the challenger draws independently and sends ; the adversary outputs ; the game outputs iff . The CDH assumption states that for every PPT ,
The computational guarantee delivers the shared key but not its secrecy: an adversary may be unable to produce yet perfectly able to distinguish it from a random group element, and that alone already breaks, say, the indistinguishability of an ElGamal ciphertext. The decisional variant excludes it.
The decisional Diffie–Hellman problem is to distinguish two distributions over ,
with independent and uniform in ; this is the distinguishing game of Definition 1.15, the challenger handing over a sample of one or the other according to its hidden bit. The DDH assumption states that every PPT distinguisher has negligible advantage
A triple with is a Diffie–Hellman triple; the assumption says no efficient distinguisher recognises such triples.
Rerandomisation works for DDH as it did for DLP, though the correct map takes some care. Given a target triple , choose and , and form
Writing , , and , the new exponents are , , and , with and uniform and independent. A DH triple () therefore becomes a fresh uniform DH triple; a non-DH triple becomes uniform conditional on being non-DH, because is uniform in . The latter distribution lies at statistical distance (Definition 1.6) from , whose third component completes a DH triple by accident with probability . A noticeable distinguishing advantage on random instances thus transfers to every fixed triple, up to this negligible term.
The three problems form a chain. Write for “ reduces to ”: an oracle solving yields an efficient solver for ; equivalently, is at least as hard as , so that if is easy then is easy; equivalently again, the assumption “ is hard” is the stronger commitment, since it implies “ is hard”. The reductions of this subsection give
ordering the problems by increasing hardness and the assumptions by decreasing strength: assuming DDH hard is the strongest commitment, assuming DLP hard the weakest.
If DLP is solvable in PPT, then CDH is solvable in PPT. Equivalently, the CDH assumption implies the DLP assumption.
Suppose solves DLP. Given a CDH instance , run on to recover , then compute by fast exponentiation. The cost is one DLP call plus group operations, and only one of the two exponents ever needed inverting. □
If CDH is solvable in PPT with non-negligible success probability, then DDH is solvable in PPT with non-negligible advantage; if the success probability is noticeable, rerandomisation drives the advantage overwhelmingly close to . Equivalently, the DDH assumption implies the CDH assumption.
Suppose solves CDH with probability . Build a distinguisher : on input , call to obtain a candidate , and output iff . On a Diffie–Hellman triple, , so outputs whenever succeeds—probability . On a random triple, with uniform and independent of , while depends only on ; the event therefore has probability exactly . Hence
non-negligible whenever is, since is negligible.
For the amplified form let be noticeable. The distinguisher rerandomises its input times independently by the map of Remark 2.6, runs with fresh coins on each copy, and outputs iff some copy answered . A DH input becomes independent uniform DH triples, each accepted with probability , so accepts with probability at least . A sample of fails to be a DH triple except with probability , and then each copy’s third component is uniform over the non-completing values given the first two, so each copy is accepted with probability at most and accepts with probability at most . With , polynomial because is noticeable, the advantage of is . □
Some elliptic-curve groups carry an efficiently computable, non-degenerate bilinear pairing with . On such a group DDH is easy: to test whether is a DH triple, check
which holds iff . Yet CDH—and a fortiori DLP—may remain hard, because the pairing reveals only inside the target group , never as an element of . Such groups, called gap groups, separate DDH from CDH and found pairing-based cryptography. The moral is that DDH is a genuinely stronger assumption: choosing a “DDH group” means choosing a group that rules out pairings of this convenient kind on itself.
The reverse reductions are not known in general. Whether CDH implies DLP—whether the ability to compute can be leveraged to extract —is the longstanding Diffie–Hellman versus discrete log question; partial results of den Boer and Maurer establish equivalence when a suitable auxiliary group of smooth order—an order that is a product of small primes—is available, but no unconditional equivalence is known. In the other direction DDH may be strictly easier than CDH, as Example 2.9 shows. Practice therefore assumes exactly the strength a protocol requires: signatures and key exchange often need only CDH, while ElGamal-style encryption needs DDH for its ciphertexts to hide the plaintext.
How hard can the discrete logarithm problem possibly be? In a group with no exploitable structure beyond the group law, the best known algorithms are generic: they manipulate group elements only through multiplication, inversion, and equality testing, never inspecting the bit-representation of an element. Shoup’s idealisation makes the class precise: a random injective labelling encodes the element as the opaque string , and the algorithm may only ask an oracle for given and , and compare labels for equality. Two generic algorithms achieve group operations; a matching lower bound then shows that, generically, nothing does better.
In a cyclic group of order , any discrete logarithm can be computed in group operations and stored group elements, deterministically and unconditionally.
Let . Since , every decomposes as
and the target relation becomes . Baby steps: compute and store the table , indexed by group element in a hash map— multiplications. Giant steps: set (one inversion plus one exponentiation, operations) and for compute incrementally, looking each value up in the table. The decomposition guarantees some pair matches, yielding after at most giant steps. Total: operations and memory. □
The memory of BSGS, not its time, is what bites in practice: at the -bit security level no attacker can store table entries. Pollard’s rho method matches the time bound with negligible memory, which is why rho, rather than BSGS, is the realistic generic attack.
In a cyclic group of prime order there is a randomised algorithm computing discrete logarithms in expected group operations and storage.
Sketch. Walk pseudo-randomly on , keeping with each visited element its known representation . Partition into three roughly equal sets by an easily computed function of the element’s label, and from step to
each step updating explicitly at cost. The sequence eventually cycles—a tail leading into a loop, the shape of the letter . Modelling as a random function on elements, the birthday bound (Math Guide, §“The union bound and a birthday calculation”) produces a collision , , within steps in expectation. A collision gives , hence ; writing ,
and if the difference is invertible modulo the prime , so . Floyd’s tortoise-and-hare cycle detection, or Brent’s improvement, finds the collision with memory, never storing the trajectory. The exceptional case occurs with probability ; re-randomising the start point handles it. □
Pollard rho parallelises almost perfectly via the van Oorschot–Wiener method of distinguished points: each of processors walks independently and reports to a shared table only the points whose label satisfies a cheap predicate, say a run of leading zero bits; two walks that ever meet coincide from then on and are detected at the next distinguished point, so the processors achieve wall-clock time with modest communication. The security-relevant measure is therefore the cost of the attack—the total operation count , read as the attacker’s budget—not the time on any single machine. A further constant-factor saving applies in groups admitting the automorphism , as elliptic curves do: identifying with halves the effective search space and lowers the expected count from to , a factor that leaves the scaling untouched. The constant is the birthday integral: a random walk on points is still collision-free after steps with probability (the product in the birthday calculation cited above), and summing over gives an expected first-collision index of .
The two attacks are not merely the best known; up to constants they are the best possible for any generic algorithm. This is Shoup’s theorem, the formal statement of the square-root barrier.
Let be prime. Any generic algorithm that makes at most queries to the group oracle outputs the discrete logarithm of a uniformly random challenge with probability at most
In particular, constant success probability requires queries.
Sketch—the linear-polynomial technique. In the idealisation, the challenge logarithm is an indeterminate drawn uniformly from . By induction on the queries, every element the algorithm forms is of a known linear polynomial whose coefficients the algorithm chose. Treat formally: as long as the polynomials produced are pairwise distinct as functions of , the labels seen are consistent with taking any value, so the algorithm has learnt nothing and can only guess, succeeding with probability . Information leaks only through an accidental collision: two distinct polynomials agreeing at the secret , that is, . For a fixed pair this nonzero linear equation has at most one root modulo the prime —the degree-one case of the Schwartz–Zippel lemma (Math Guide, §“The Schwartz–Zippel lemma”)—so it holds with probability at most over uniform . With queries plus the two inputs and there are at most pairs, and the union bound (Math Guide, §“The union bound and a birthday calculation”) caps the collision probability at . Adding the guess yields the bound; solving gives . □
To force every generic attacker to spend at least group operations— bits of security against generic attacks—the prime group order must satisfy
For the corollary demands a prime group order with . This explains the standardised -bit elliptic curves: NIST P-256 (secp256r1) has a -bit field and a -bit group order, so . The Pasta curves of §2.6, with -bit orders just above and about bits of security, sit just below this class. Contrast the multiplicative group : there the sub-exponential index calculus of Remark 2.18 forces into the thousands of bits for the same . Elliptic curves earn their keep precisely because no sub-exponential, generic-beating algorithm is known for them.
The square-root barrier governs generic groups only; a concrete representation can leak structure that beats it. The multiplicative group is the cautionary case: index calculus exploits the factorisation of integers into small primes—smooth numbers—to solve DLP in sub-exponential time
far below . No analogue is known for the points of a well-chosen elliptic curve over : there is no useful notion of a “small” point over which to factor. This non-generic gap is why elliptic-curve groups can live at bits where must reach about bits for the same security. It also means the rule protects against generic attacks only; a curve must additionally be screened against the special-purpose attacks of Definition 2.24.
The square-root barrier priced the attack at for prime . If the group order factors, the discrete logarithm splits into independent pieces the size of the factors, and the difficulty collapses to that of the largest prime dividing the order. This is the Pohlig–Hellman reduction—the reason Definition 2.2 insisted on prime order.
Let have order with the distinct primes. Then a discrete logarithm in can be computed in
group operations. The term dominates, where is the largest prime dividing .
We compute modulo each prime power and recombine by the Chinese Remainder Theorem, the moduli being pairwise coprime with product .
Reduction to prime-power order. Fix , , and put , . Then has order exactly , and : raising to kills the part of coprime to ’s power and leaves . It therefore suffices to solve DLP in of order .
Reduction to prime order, digit by digit. Write the unknown in base :
Let , an element of order exactly . Raising to the power gives
because every higher digit contributes a multiple of to the exponent and annihilates . Thus is a single discrete logarithm in a group of prime order , solvable in operations by BSGS or rho (Propositions 2.11 and 2.13). Having , set ; its logarithm is divisible by , and the same step at exponent yields . Iterating recovers all digits with prime-order DLPs of cost each, plus operations of exponentiation. Summing over and applying the CRT gives the stated bound. □
Suppose, contrary to good practice, a group has order . The order factors completely into
a product of small primes—it is smooth. Despite having bits, the largest prime factor is only about , far below , so Pohlig–Hellman with rho in the largest subgroup solves DLP in roughly operations—about , nowhere near the apparent -bit level. A -bit order is necessary but not sufficient: it must be (almost) prime.
For DLP-based security at level , the group order must be divisible by a prime with , and the cryptographic group must be, or be restricted to, the subgroup of order . When the ambient group has order with small cofactor and large prime , one works in the order- subgroup; clearing the cofactor—multiplying incoming elements by , or checking subgroup membership—prevents small-subgroup attacks that would otherwise leak via Pohlig–Hellman on the order- part.
Here is the deeper justification for “prime order” in Definition 2.2. Prime order makes Pohlig–Hellman vacuous (the only factor is itself), makes every non-identity element a generator (no element lands in a weak proper subgroup), and removes cofactor bookkeeping entirely. The Pasta curves below are engineered to have prime order: each group is its own prime-order subgroup, with cofactor .
We now fix the concrete groups the remainder of the volume uses. Recall from the Math Guide (§“Elliptic curves”, with the group law in §“The group structure of ”) that an elliptic curve over , for prime, in short Weierstrass form is
and that its set of -points,
equipped with chord-and-tangent addition and the point at infinity as identity, forms a finite abelian group. The discrete logarithm problem in this group—given and , find —is the elliptic-curve discrete logarithm problem (ECDLP), stated in its own habitat in the Math Guide (§“The elliptic-curve discrete logarithm problem”); CDH and DDH transcribe verbatim with multiplicative notation replaced by the additive scalar multiplication , giving ECCDH and ECDDH. The group size is pinned down by the Hasse bound, likewise recalled.
For over (Math Guide, §“The group structure of ”),
where is the trace of Frobenius. The group order is thus up to a deviation of order .
The parameter recipe for -bit security follows: choose of about bits, so that , and insist by Corollary 2.21 that be prime—cofactor . One then assumes ECDLP, ECCDH, and ECDDH at the level Corollary 2.16 predicts, provided the curve avoids the known structural attacks that beat the generic bound. The screening criteria are as follows.
A curve of prime order is admissible for -bit DLP security if:
(Size / generic.) The order satisfies , so Pollard rho costs at least operations (Corollary 2.16).
(Prime order.) The order is prime, so Pohlig–Hellman is vacuous and the cofactor is (Corollary 2.21).
(Anti-MOV / large embedding degree.) The multiplicative order of modulo —the embedding degree—is large. The MOV/Frey–Rück attack uses a pairing to embed into and runs the sub-exponential index calculus of Remark 2.18 there; the threat is real only for small , as on supersingular curves—over a prime field , those with trace , so that divides and . A curve with is ordinary.
(Anti-Smart / not anomalous.) The order avoids : on an anomalous curve, with trace , the Smart–Satoh–Araki–Semaev attack solves ECDLP in polynomial time.
(Twist security.) The quadratic twist —the curve for a fixed nonsquare ; every is the -coordinate of a point of or of —should also have large prime order, so that computation cannot be pushed onto a weak twist by a fault or an invalid-point injection.
The Pasta curves are a pair, Pallas and Vesta, in short Weierstrass form
(so , , a -invariant- shape), defined over two -bit primes and arranged in a cycle:
The order of each curve equals the field of definition of the other. Both primes are congruent to , giving their multiplicative groups large -adic valuation for fast FFTs, and each curve has cofactor : the whole group is of prime order. The primes themselves are assembled digit by digit in the Math Guide (§“Pallas and Vesta assembled”), and the field/scalar bookkeeping of the cycle in §“Base fields, scalar fields, and the Pasta cycle” there.
The defining property—, the base field of Vesta, and , the base field of Pallas—makes (Pallas, Vesta) an amicable, or cyclic, pair: one curve’s scalar field is the other’s coordinate field. A proof system can therefore use Pallas-arithmetic to verify statements about Vesta-arithmetic and vice versa without non-native field emulation; this is the mechanism behind recursive proof composition in Halo 2, whose recursion alternates between the two curves. The cycle is an efficiency property, not a security one: it does not enter the hardness assumptions, and each curve is screened independently against Definition 2.24.
The curves Pallas and Vesta satisfy criteria (1)–(4) of Definition 2.24 at . Criterion (5) fails for both curves—neither twist has prime order, and the Pallas twist falls below the SafeCurves twist-attack cost threshold—but the failure is rendered moot by mandatory point validation.
Sketch, criterion by criterion.
(1) Each order is a -bit prime just above , so and the bare generic cost is . Plain Pollard rho expects about operations; the automorphism speedup of Remark 2.14 lowers this to ; and the order- automorphism group of these -invariant- curves—the factor for an order- automorphism group of Remark 2.28, here an extra —lowers it to . Hence “about bits” of security, the same range as the -bit curves of Example 2.17.
(2) Both orders are prime by construction: cofactor , Pohlig–Hellman vacuous.
(3) Both curves are ordinary: the trace is odd, so . The embedding degree of each is enormous. For Pallas, with a -bit composite, and and for , so the order of modulo is a multiple of ; for Vesta, , and , for make a multiple of . Either extension field is astronomically beyond any feasible index-calculus target; MOV/Frey–Rück does not apply.
(4) Neither curve is anomalous: and , so the trace and the Smart attack does not apply.
(5) Twist security is the criterion the pair does not meet. The Pasta search deliberately ignored it—the curves were generated with the search flag --ignoretwist of the amicable.sage search recorded in the README of the zcash/pasta repository—and neither twist has prime order. Each supplies two affine points in total, on or on (one on each when ), so and ; hence and , which factor as
with a -bit prime and a -bit prime. The best attack on the Pallas twist therefore costs about , below the SafeCurves twist-security threshold; the Vesta twist clears the threshold at about . The failure is moot in our setting: twist attacks require an implementation that accepts an attacker-supplied -coordinate without validation (an -only ladder) or that skips its on-curve checks, and the deployed arithmetic does neither. The pasta_curves crate carries points in full coordinates and has no -only code path; its deserialisation (from_bytes) reconstructs by taking the square root of , failing exactly when lies on the twist, where is a non-square, and even from_bytes_unchecked delegates to the checked path because a compressed encoding cannot skip the curve check, while points built from raw coordinates are gated on is_on_curve. This is the behaviour protocol specification § 5.4.9.6 mandates: its decoding map returns (failure) when has no square root, and an implementation must not assume that the root exists or that the encoding lies on the curve. Orchard deserialises its points through this routine, and cofactor leaves no small subgroup on the curve itself. Invalid-curve and twist-point injection are therefore excluded by validation, not by twist structure.
The standard generic analysis governs, and the security level is about bits. □
The shape gives -invariant , and with it an extra automorphism of order (Math Guide, §“The -invariant and the GLV endomorphism”): for a primitive cube root of unity in , the cheap endomorphism acts on the group as multiplication by a fixed scalar with (the of the Math Guide’s proposition), enabling the GLV speedup for honest scalar multiplication. The same endomorphism hands the attacker a slightly larger automorphism group, and with it the constant-factor Pollard-rho speedup used in Proposition 2.27—a factor for an order- automorphism group—but that is a small constant and does not change the scaling. Beyond that constant, the extra automorphism is not known to weaken ECDLP; the danger lies only in small embedding degree and in anomalousness, both excluded above.
Every assumption above holds the adversary to classical PPT computation. Against a large fault-tolerant quantum computer the picture changes qualitatively, and honesty requires stating exactly what breaks and what survives.
There is a quantum algorithm that, given a cyclic group of order with efficient group operations and a target , outputs in time polynomial in , succeeding with overwhelming probability. Consequently DLP—and with it CDH and DDH—falls in quantum polynomial time in any group, elliptic-curve groups included.
We do not prove the theorem; the shape of the algorithm is nevertheless worth recording. Discrete logarithm is an instance of the hidden subgroup problem over . The function is constant exactly on the cosets of
a line of slope . The algorithm prepares a uniform superposition over , evaluates into a second register, and applies the quantum Fourier transform—the reversible change of basis into the characters of , the homomorphisms into the unit circle; measurement then samples characters trivial on , i.e. pairs with , and a handful of samples reveal the slope by classical linear algebra modulo . The whole procedure uses qubits and gates, and it touches the group only through the black-box map , so it is agnostic to representation: elliptic-curve DLP falls exactly as DLP does, and integer factoring falls to the order-finding variant.
Shoup’s lower bound (Theorem 2.15) assumes the generic model for classical algorithms making sequential, individual oracle queries. Shor’s algorithm is non-generic in exactly the relevant sense: it queries the group function in superposition and exploits the periodicity the Fourier transform exposes, abilities the classical generic model does not grant. The two results coexist: the barrier bounds classical generic attackers; Shor is a quantum, non-generic attacker.
Shor’s algorithm breaks the entire discrete-log family and integer factoring in polynomial time: RSA, finite-field Diffie–Hellman, and elliptic-curve cryptography are all quantum-broken. What it does not break:
Symmetric primitives and hash functions. Grover’s algorithm searches a space of size in about quantum queries—a quadratic, not exponential, speedup—so a cipher with a -bit key, or an -bit hash against preimages, retains bits of quantum security. Generic quantum collision finding instead costs queries, so in the query metric an output of about bits is needed for -bit quantum collision security—though the algorithm needs comparably much quantum memory, and whether it beats classical parallel collision search in realistic cost models is debated. Doubling therefore suffices for key search and preimages, but for collisions only under that contested cost reading.
Post-quantum assumptions. Hardness assumptions based on neither discrete logarithms nor factoring are not known to fall to Shor and underlie post-quantum cryptography.
The discrete-log assumptions of this volume are therefore adopted under the standing premise that no cryptographically relevant quantum computer exists. Within that premise, and against all classical attacks, the Pasta curves deliver the approximately -bit security of Proposition 2.27—the ground on which the Halo 2 constructions to come are built.
We collect the premises the rest of the volume relies on. For each Pasta curve with prime order and generator :
ECDLP is hard in : no classical PPT adversary finds from with non-negligible probability—concretely, every known attack costs at least operations (Proposition 2.27).
The adversary is classical and probabilistic polynomial-time (Remark 2.31).
By the hierarchy of §2.3, assuming ECDDH is the strongest commitment and implies the rest; each later construction invokes, by name, the weakest assumption it requires.