Pairing-friendly curve
BN254
The 2016 exTNFS attack cut its security from 128 bits to roughly 100.
Deployment assessment
Specialist review required
Check the exact construction, parameters and protocol profile before deployment. The catalog verdict alone is not a deployment recommendation.
- Intended use
- Pairing-friendly curve
- Conditions
- The 2016 exTNFS attack cut its security from 128 bits to roughly 100.
This caution summarizes the existing catalog evidence. A separate deployment-source review has not yet been recorded. How to read this assessment.
Cryptanalytic assessment
A mathematical weakness in pairing-friendly curves. Kim and Barbulescu's extended tower number field sieve attacks the finite field the pairing maps into, lowering BN254 to around 100-bit security. Still deployed in Ethereum precompiles and zkSNARK systems; newer designs use BLS12-381.
- Best known attack
- Extended tower number field sieve, about 2^100
- Quantum
- Quantum-vulnerable. A large fault-tolerant quantum computer running Shor's algorithm breaks it outright.
- Names and historical labels
- alt_bn128, BN-254, Barreto-Naehrig 254
Evidence for the verdict
- Math(the math)exTNFS cuts BN254 pairing security from ~128 to ~100 bitsTaechan Kim and Razvan Barbulescu's Extended Tower Number Field Sieve (CRYPTO 2016; ePrint October 2015) lowered the asymptotic cost of discrete logs in finite fields F_{p^k} with composite k in the 'medium prime' range. That is exactly the target field F_{p^12} of BN pairing curves. Barbulescu-Duquesne (J. Cryptology 2018) and the IRTF CFRG pairing-curves draft re-estimated BN254, previously sold as 128-bit, at no more than about 100 bits.
- MilestoneEthereum's Pectra upgrade adds BLS12-381 precompiles, moving pairings off BN254Ethereum mainnet activated Pectra on 7 May 2025, including EIP-2537 precompiles for BLS12-381. The EIP's stated motivation is that the existing BN254 precompile (EIP-196/197, 2017) no longer gives the 128-bit security it was chosen for.
Case file
Every event on file that names BN254.
2 case files, newest first.
2020s
- MilestoneEthereum's Pectra upgrade adds BLS12-381 precompiles, moving pairings off BN254
BLS12-381 / BN254 (alt_bn128)
2010s
- MathTheoreticalexTNFS cuts BN254 pairing security from ~128 to ~100 bits
BN254 (alt_bn128) / Barreto-Naehrig curves / pairing-friendly curves / BLS12-381