06 · the other curve
BLS12-381
The 381-bit curve behind Zcash's Sapling, Ethereum's consensus layer and nChain's reference verifier. On Bitcoin Cash it already has a reviewed Groth16 verifier — 34,229 bytes in four inputs. This page records what it would cost us, and why we have not shipped it.
[measured] = first-party measurement · [cited] = third-party bench number · [derived] = arithmetic from the curve parameters · UNMEASURED = we have not run it
01 · the object
What BLS12-381
Actually Is
A Barreto–Lynn–Scott curve over a 381-bit prime with embedding degree 12. Every field element is 48 bytes instead of 32, and the arithmetic is not a rescaling of BN254 — the twist, the line-multiplication form and the final exponentiation all change shape. What stays identical is the tower and the point formulas.
That last sentence is the whole reason a verifier for it exists on BCH at all: the Fp2 basis, the doubling and addition formulas, the Fp12 tower and cyclotomic squaring are near-mechanical re-parameterizations of the BN254 verifier, so the engineering effort was porting, not invention.
parameters, and what changes
verified- family
- BLS (Barreto–Lynn–Scott) · pairing-friendly · embedding degree 12
- base prime
- 381-bit · 48 B serialized field element
- curve x
- −0xd201000000010000 (negative → conjugate f at the end of the Miller loop)
- G1 b
- 4
- G2 twist
- M-twist b′ = 4·(1+u) → mulByB(a) = (4a₀−4a₁, 4a₀+4a₁)
- ξ (sextic)
- 1 + u → fp2MulXi(a) = (a₀−a₁, a₀+a₁)
- ate loop
- NAF of |x|, no Q1/Q2 ψ post-step
- line mul
- mul014 (multiplicative twist)
- final exp
- BLS / Hayashida–Scott chain
- compiler
- circom 2.2.3, --prime bls12381 — verified via circom --help
- unchanged
- Fp2 basis u² = −1, pointDouble/pointAdd, the Fp12 tower, cyclotomic squaring
curve comparison table: groth16_cashscript/bls12-381 ↗ · compiler: circom 2.2.3 on the apecsdev VM
02 · the comparison
Two Reviewed Verifiers, One Transaction Each
These are the two artifacts the public bench currently ranks as its best deployable sound verifiers on each curve — both independently reviewed on 2026-10-26, both fitting one standard BCH transaction. The comparison is therefore like-for-like, which is rare in this space.
| quantity | BN254 | BLS12-381 |
|---|---|---|
| verifier bytes | 27,624 | 34,229 (+24%) |
| inputs | 3 | 4 |
| transactions | 1 standard | 1 standard |
| op-cost | 20.72M | 24.0M |
| redeem | 65 B, identical in all 3 inputs | 81 B, shared by 4 inputs |
| reviewed | 2026-10-26 | 2026-10-26 |
| liveness margin | 5.81% standard · 6.26% consensus | 6.18% standard · 6.42% consensus |
| soundness error | see the artifact | ε ≈ 2−248 |
| Groth16 proof | 128 B (2×32 + 64) | 192 B (2×48 + 96) |
| nChain reference | — | 522,564 B (the same curve) |
bench entries: verifiers.md ↗ · proof sizes are [derived] from the point encodings (G1 32/48 B, G2 64/96 B)
what 24% more bytes buys
A larger base field. Whether that translates into a materially higher security level is the question that matters and the one we cannot yet answer with a primary source — see 07 · open. We will not print a bits-of-security figure without a citation.
what the extra input costs
One more input in the same transaction. On BCH the per-input op budget is (41 + unlockingLength) × 800, so a fourth role is a re-split of the same work, not extra budget pressure — the margins are actually better than BN254's (6.18% vs 5.81%).
03 · the cost
What a BLS12-381 Pool Would Cost
Six steps. Only one of them is expensive, and it is not the verifier.
circom is field-generic: `circom --prime bls12381` compiles the same pool.circom. The new constraint count is UNMEASURED — it must be compiled and counted before anything else is claimed.
A different field means a different R1CS and a different proving key, even if the constraint count lands close to 183,472. No number exists until the compile runs.
Powers-of-Tau transcripts are curve-specific. The transcript we used — ppot_0080_18.ptau, 302,083,218 B — is BN254: the PSE repository ships phase2-bn254 and every instruction targets it. A BLS12-381 pool cannot reuse a single contribution.
34,229 B in 4 inputs, one standard transaction, reviewed 2026-10-26. The engineering is done — this is the part that is NOT a research project.
The covenant slices the proven public inputs at fixed witness offsets, so a different verifier means different offsets and a new redeem. Same design, new bytes.
New category, new covenant P2SH32, new step UTXOs. One deploy transaction — the cheap part.
04 · the decision
Why This Is Not
a Second Pool Option
two pools, two anonymity sets
A shielded pool is only as private as the set it hides you in. Offering the same community two pools on two curves splits that set in half — permanently — in exchange for a security delta nobody has yet quantified for us.
two ceremonies
A curve change forces a new transcript. Shipping BN254 now and BLS12-381 later means paying for two independent multi-party ceremonies — the single most expensive thing in the entire project, and the reason the Path-B decision was made before mainnet in the first place.
so the decision belongs to Gate 7
A production ceremony is required either way. That makes the ceremony the only step where the curve choice is free — decide the curve, then run one ceremony for it. Deciding earlier costs a ceremony; deciding later costs a pool.
05 · open
Open Questions
How many constraints does the circuit have on BLS12-381?
UNMEASURED. We have confirmed the compiler supports it — circom 2.2.3 lists bls12381 among its --prime values — but we have not compiled pool.circom against it. R1CS is field-generic, so the count should land close to 183,472, and "should" is not a number we publish.
Is BLS12-381 more secure than BN254, and by how much?
The field is 1.5× wider (381 vs 254 bits) and the curve was designed for a higher security target, which is why it is the default for production ZK systems. But we have not obtained a primary citation for the specific bit figures, so this page carries no number. The BN254 page marks the same gap.
Could we run the same circuit on both curves and compare honestly?
Yes, and that is the experiment worth running: compile once per curve, count constraints, generate a proof on each, regenerate the verifier under each curve's own key, and measure the pool transaction on the BCH-2026 VM. Four numbers, one afternoon of compute. Until then, every claim on this page is either cited from the bench or marked UNMEASURED.
Does a BLS12-381 pool dodge the problems we found on BN254?
No. Neither the withdrawn densless verifier nor the covenant's missing sibling pin was curve-specific: the first is a construction, the second was our own script logic. Both are now fixed in the deployed BN254 role-2 pool — the reviewed sound verifier, with the pool rules inside role 2 and the sibling gone entirely. A BLS12-381 pool would need the same role-2 treatment; the curve is a separate axis. The 3-out v3 (184,528 constraints, +0.58%) is a note-management layer, not a curve: a BLS12-381 pool would need the same 3-out, deposit, nullifier-set and note-delivery work, plus its own new ceremony.
06 · sources
Sources
groth16_cashscript — verifiers.md (both curves, the map)
https://github.com/mr-zwets/groth16_cashscript/blob/main/verifiers.md
singleton/bls12-381 — the curve comparison table
https://github.com/mr-zwets/groth16_cashscript/blob/main/singleton/bls12-381/README.md
bls-native-sound — the reviewed 4-input verifier
https://github.com/mr-zwets/groth16_cashscript/blob/main/chunked/bls12-381/bls-native-sound/README.md
zk-verifier-bench — the grading harness
https://github.com/mr-zwets/zk-verifier-bench
perpetualpowersoftau — why the ceremony is curve-bound
https://github.com/privacy-scaling-explorations/perpetualpowersoftau
our circuit + design records
https://github.com/APECSdev/pusd-shielded-pool