elliptic curves, pairings, and one host function
BLS12-381 — the pairing-friendly curve under a PLONK-on-Stellar verifier.
A 381-bit Barreto–Lynn–Scott curve with embedding degree $k=12$, two prime-order subgroups $G_1, G_2$, and a non-degenerate bilinear pairing $e: G_1 \times G_2 \to G_T$. That pairing is what makes KZG commitments openable and PLONK proofs checkable in a single on-chain call.
48-byte $G_1$ points, ~128-bit classical security, one CAP-0059 pairing on chain. Broken under Shor — the curve, KZG, PLONK, and BLS signatures collapse together on a CRQC.
the shape
Two source groups, one target. One bilinear map between them.
A pairing is a non-degenerate bilinear map from two source groups into a target group. On BLS12-381, the source groups $G_1$ and $G_2$ are cyclic subgroups of large prime order $r$; the target $G_T$ is a subgroup of the multiplicative group of $F_{p^{12}}$. The map is computable in polynomial time; inverting it is not.
In-circuit arithmetic lives in $F_r$, the 255-bit scalar field. Every field operation the SNARK encodes is reduced mod $r$ before the prover ever touches a group element.
bilinearity, interactively
Slide the scalars. Watch the exponents rearrange.
The pairing is linear in each argument. Pulling a scalar out of either source group multiplies the exponent in $G_T$. This is the single algebraic property KZG opens its commitments with, and the one PLONK's verifier reduces to.
A KZG opening at point $z$ for a polynomial committed as $[f]_1$ asks the verifier to check $e([f]_1 - [f(z)]_1,\ [1]_2) = e([q]_1,\ [x - z]_2)$. PLONK's full verifier batches several such openings into two pairings — one fixed, one variable. The whole soundness story bottoms out at the identity in the top card.
parameters
Concrete numbers.
All values are fixed by the curve definition or by the deployment's host-function surface. None are tunable knobs.
how it wires into plonk-on-stellar
Three columns: scalar field, group ops, host functions.
In-circuit arithmetic happens in $F_r$. The off-chain prover lifts those values into $G_1$ via multi-scalar multiplications. The on-chain verifier never touches the witness — it calls three host functions and reads one bit of output.
Without these host functions, PLONK on Soroban would be cost-prohibitive in pure WASM. Stellar Protocol 22 added them in CAP-0059; chains without a native pairing precompile cannot host this configuration cost-effectively.
security
Classically conservative. Quantum-fragile.
Two assumptions, two horizons. The classical card is the working margin today; the post-quantum card is the load-bearing caveat — and the one a deployment must say out loud.
Discrete log in $G_1$, $G_2$. q-SDH in the pairing.
Reduces to discrete-logarithm hardness in the source subgroups and the q-strong Diffie–Hellman family used by KZG and PLONK.
- Pollard rho on $G_1$ and $G_2$ — the best generic attack on the source subgroups; $O(\sqrt{r})$.
- (Sub-)exponential index calculus on the embedding-degree-12 target group $G_T$.
- Conservative estimates remain near the 128-bit design target.
A CRQC recovers discrete logs in $G_1$ in polynomial time.
That single break collapses every BLS12-381-based scheme simultaneously: KZG, PLONK, and BLS signatures all fail together. There is no graceful degradation; there is no equivocation in the literature.
- Shor (1994) gives a polynomial-time algorithm for discrete log on any abelian group, including elliptic-curve subgroups.
- The pairing-friendly structure is not a hardening factor — the source-group break is sufficient.
- Mitigation is a curve change, not a parameter bump: lattice-based polynomial commitments or hash-based SNARKs.
why this curve, not bn254
A curve change in 2016. A host-function vote in 2024.
BLS12-381 is the contemporary default for new pairing-based deployments. Two events made it the default — one cryptanalytic, one ecosystem.
references
Primary literature.
Four sources. Two for the curve itself, one for the host-function surface, one for the post-quantum baseline.
- BLS12-381: New zk-SNARK Elliptic Curve Construction. Electric Coin Co. blog.
- Extended Tower Number Field Sieve: A New Complexity for the Medium Prime Case. CRYPTO 2016, 543–571.
- CAP-0059: Host Functions for BLS12-381 Curve Operations.
- Algorithms for Quantum Computation: Discrete Logarithms and Factoring. FOCS 1994, 124–134.