← Back to section · Foundations of Cryptography
How Curve Parameters Are Chosen: The P-256 versus secp256k1 Divide
A deployed elliptic curve must fix five sets of parameters: the field, the coefficients, the base point, the order and the cofactor. This article contrasts the choices made by NIST P-256 and by secp256k1, used in Bitcoin, and lists the verifiable security criteria — resistance to Pohlig–Hellman and MOV among them — together with the trust problem in parameter generation.
The overview article called the disagreement between the two famous curves “a dispute over design philosophy and governance”. This article pins that sentence onto the parameter table: exactly which numbers a deployment-grade elliptic curve must fix, what choices P-256 and secp256k1 made for each of them, and which security criteria should be checked item by item when reviewing an unfamiliar curve. Parameter selection is the most commonly misunderstood part of elliptic-curve cryptography — the curve itself holds no secrets and all parameters are public; security comes from the hard problem, but credibility comes from whether the provenance of these public numbers withstands questioning.
The parameter list: five sets of numbers fix a curve
For a short Weierstrass curve over a prime field, the parameters to fix are: the field prime , which determines the range of coordinates and the speed of arithmetic; the equation coefficients and , which determine the shape of the curve; the base point , the starting point of all scalar multiplications in protocols; the order of the base point, the smallest positive integer with , which determines the size of the private-key space; and the cofactor , the ratio of the total number of curve points to . The private key is a random number drawn from , so must contain a large prime factor of about 256 bits, and the security strength is about half the bit length of that prime factor — this is the first arithmetic test in reviewing any curve.
The shape of the field prime directly determines implementation speed. P-256’s prime is ; this “pseudo-Mersenne” form, assembled from a few powers of two, reduces modular reduction to a handful of shifts and additions, which is the key to hand-optimized implementations; , used by Curve25519 and Ed25519, works the same way. A randomly chosen prime of the same size would be just as secure mathematically but several times slower in arithmetic — almost every number in the parameter table speaks for security and performance at the same time.
The two curves compared
P-256 (published by NIST in 2000, now standardized as FIPS 186-5) chose a fast-reduction prime, but the provenance of the coefficient is the focus of controversy: the standard states that was generated by hashing some seed with SHA-1, yet never explained where the seed came from. Hash-based generation makes the coefficient “look random” and rules out the designer embedding obvious structure, but it cannot rule out another possibility: the designer could have kept changing the seed until the hashed curve landed in a class of weak curves known only to them — and if such a class exists, outsiders have no way to detect it. This is the inherent ceiling of “verifiably random” generation: it proves the coefficient was not written down directly, but it cannot prove the seed was not cherry-picked.
secp256k1 (collected in the SEC 2 standard published by Certicom, and widely known through its use in Bitcoin) took the opposite road: the equation takes the simplest possible form , i.e. and , the smallest integers writable in this family, with no seed and no hash, its provenance beyond reproach; its prime likewise favors fast reduction. The price is that a curve with carries special algebraic structure: there is an efficiently computable endomorphism that the GLV method can use to accelerate scalar multiplication (a public and beneficial fact), but special structure always raises the question of whether it simultaneously opens an unknown attack surface. The current consensus is that this structure only accelerates and does not weaken ECDLP — but the discussion itself shows that the more special the parameters, the heavier the security argument they must carry.
Set side by side, the conclusion is not that one is right and the other wrong: P-256 traded randomization for “no special structure” but kept a seed-trust problem; secp256k1 traded minimal parameters for a clean provenance but must carry the argumentative burden of its special structure. Later arrivals such as Curve25519 tried to have both: every parameter comes with a checkable selection rationale (the smallest prime meeting the conditions, the smallest coefficient, rigid generation), and this standard of “rigidity” has become the common language for reviewing new curves.
Security criteria: a checklist, item by item
Whatever their provenance, before a curve is put into service it must pass a set of purely mathematical checks. Order structure: the number of points on the curve is bounded by Hasse’s theorem and can be computed exactly; the order must contain a large prime factor, otherwise the Pohlig–Hellman algorithm dismantles the discrete logarithm block by block along the small factors. Embedding degree: if a curve’s embedding degree is small, the MOV attack can use a pairing to move ECDLP into a finite-field multiplicative group, where subexponential algorithms exist — curves for ordinary signatures and key exchange require the embedding degree to be large enough to disable this route (curves that need pairings do the opposite; see the introduction to pairings). Anomalous curves: curves whose point count equals exactly admit an attack reducing ECDLP to an additive group and must be excluded. Singularity and the discriminant: a curve with discriminant zero does not form a group at all. Small subgroups and twist curves: when the cofactor is large or the twist is unsafe, invalid-curve attacks can trick an implementation into leaking the private key modulo small factors, so the protocol layer must add point validation or choose twist-secure curves. The SafeCurves project systematized criteria of this kind into a public checklist that remains the reference for reviewing new curves.
The shape of the field: how prime fields won
The parameter list also hides a route choice: whether the field is a prime field or a binary field . Early standards included both kinds of curve, and binary fields once had natural advantages in hardware implementation. But from the 2000s onward, research on attacks against binary-field curves kept making progress, and the implementation ecosystem for prime fields on general-purpose processors pulled decisively ahead; mainstream standards have gradually removed binary-field curves from their recommendation lists, and the current FIPS 186-5 retains only prime-field curves. This history shows that parameter review is not a one-time event: parameters that qualify today may not qualify in ten years, and leaving room in a deployed system to replace the curve — cryptographic agility — is itself part of the parameter decision.
Summary
The story of curve parameters is half mathematics and half governance. The mathematical half has definite answers: order, embedding degree, cofactor and the other criteria can each be verified, and the strength computed to the bit. The governance half admits no proof: who generated the coefficients, where the seed came from, why the structure is special — trust here can only be accumulated through the transparency and rigidity of the generation process. Understanding this double thread explains why parameter disputes in the cryptography community never die down: what is being disputed was never just the numbers, but “why should anyone believe this set of numbers”. The next article looks at a curve family that pushed implementation-friendliness to its limit: Edwards curves and Ed25519.
Tags: Elliptic CurvesP-256secp256k1Parameter Selection