ark_bls12_377_ext/lib.rs
1//! This library implements the BLS12_377 curve generated in [\[BCGMMW20, “Zexe”\]](https://eprint.iacr.org/2018/962).
2//! The name denotes that it is a Barreto--Lynn--Scott curve of embedding degree
3//! 12, defined over a 377-bit (prime) field. The main feature of this curve is
4//! that both the scalar field and the base field are highly 2-adic.
5//! (This is in contrast to the BLS12_381 curve for which only the scalar field
6//! is highly 2-adic.)
7//!
8//!
9//! Curve information:
10//! * Base field: q = 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177
11//! * Scalar field: r = 8444461749428370424248824938781546531375899335154063827935233455917409239041
12//! * valuation(q - 1, 2) = 46
13//! * valuation(r - 1, 2) = 47
14//! * G1 curve equation: y^2 = x^3 + 1
15//! * G2 curve equation: y^2 = x^3 + B, where
16//! * B = Fq2(0, 155198655607781456406391640216936120121836107652948796323930557600032281009004493664981332883744016074664192874906)
17
18#![cfg_attr(not(feature = "std"), no_std)]
19
20mod curves;
21
22pub use ark_bls12_377::{fq12, fq2, fr, Fq, Fq12Config, Fq2, Fq2Config, Fq6Config, Fr, FrConfig};
23pub use curves::*;
24
25#[cfg(feature = "r1cs")]
26pub use ark_bls12_377::constraints;