ark-curves-cherry-picked/bw6_761/src/lib.rs
bw6_761/src/lib.rsRaw
1#![cfg_attr(not(feature = "std"), no_std)]
2#![deny(
3 warnings,
4 unused,
5 future_incompatible,
6 nonstandard_style,
7 rust_2018_idioms
8)]
9#![forbid(unsafe_code)]
10
11//! This library implements the BW6_761 curve generated in [\[EG20\]](https://eprint.iacr.org/2020/351).
12//! The name denotes that it is a curve generated using the Brezing--Weng
13//! method, and that its embedding degree is 6.
14//! The main feature of this curve is that the scalar field equals the base
15//! field of the BLS12_377 curve.
16//!
17//! Curve information:
18//! * Base field: q = 6891450384315732539396789682275657542479668912536150109513790160209623422243491736087683183289411687640864567753786613451161759120554247759349511699125301598951605099378508850372543631423596795951899700429969112842764913119068299
19//! * Scalar field: r = 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177
20//! * valuation(q - 1, 2) = 1
21//! * valuation(r - 1, 2) = 46
22//!
23//! G1 curve equation: y^2 = x^3 + ax + b, where
24//! * a = 0,
25//! * b = -1,
26//!
27//! G2 curve equation: y^2 = x^3 + Ax + B
28//! * A = 0
29//! * B = 4
30
31mod curves;
32mod fields;
33
34pub use curves::*;
35pub use fields::*;