arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
ark-curves-cherry-picked/ed_on_bls12_377/src/lib.rs
ed_on_bls12_377/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 a twisted Edwards curve whose base field is the
12//! scalar field of the curve BLS12-377.  This allows defining cryptographic
13//! primitives that use elliptic curves over the scalar field of the latter
14//! curve. This curve was generated as part of the paper [\[BCGMMW20, “Zexe”\]](https://eprint.iacr.org/2018/962).
15//!
16//! Curve information:
17//! * Base field: q =
18//!   8444461749428370424248824938781546531375899335154063827935233455917409239041
19//! * Scalar field: r =
20//!   2111115437357092606062206234695386632838870926408408195193685246394721360383
21//! * Valuation(q - 1, 2) = 47
22//! * Valuation(r - 1, 2) = 1
23//! * Curve equation: ax^2 + y^2 =1 + dx^2y^2, where
24//!    * a = -1
25//!    * d = 3021
26
27#[cfg(feature = "r1cs")]
28pub mod constraints;
29mod curves;
30mod fields;
31
32pub use curves::*;
33pub use fields::*;