#elliptic-curve #pairing #extension #prime-field

no-std ark-bls12-381-ext

Extensions for the BLS12-381 pairing-friendly elliptic curve

1 unstable release

0.4.1 Oct 27, 2023

#1328 in Cryptography

Download history 43728/week @ 2024-10-04 38457/week @ 2024-10-11 40629/week @ 2024-10-18 36310/week @ 2024-10-25 43692/week @ 2024-11-01 35892/week @ 2024-11-08 35755/week @ 2024-11-15 34350/week @ 2024-11-22 32247/week @ 2024-11-29 36335/week @ 2024-12-06 32610/week @ 2024-12-13 12018/week @ 2024-12-20 12771/week @ 2024-12-27 28474/week @ 2025-01-03 39243/week @ 2025-01-10 33045/week @ 2025-01-17

114,522 downloads per month
Used in 12 crates (3 directly)

MIT/Apache

465KB
1K SLoC

This library implements the BLS12_381 curve generated by Sean Bowe. The name denotes that it is a Barreto--Lynn--Scott curve of embedding degree 12, defined over a 381-bit (prime) field. This curve was intended to replace the BN254 curve to provide a higher security level without incurring a large performance overhead.

Curve information:

  • Base field: q = 4002409555221667393417789825735904156556882819939007885332058136124031650490837864442687629129015664037894272559787
  • Scalar field: r = 52435875175126190479447740508185965837690552500527637822603658699938581184513
  • valuation(q - 1, 2) = 1
  • valuation(r - 1, 2) = 32
  • G1 curve equation: y^2 = x^3 + 4
  • G2 curve equation: y^2 = x^3 + Fq2(4, 4)

Dependencies

~5.5MB
~101K SLoC