ark-curves-cherry-picked/ed_on_cp6_782/src/lib.rs
ed_on_cp6_782/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 scalar field of the curve CP6.
12//! This allows defining cryptographic primitives that use elliptic curves over the scalar field of the latter curve.
13//! This curve was generated as part of the paper [[BCGMMW20, “Zexe”]](https://eprint.iacr.org/2018/962).
14//!
15//! Curve information:
16//! * Base field: q = 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177
17//! * Scalar field: r = 32333053251621136751331591711861691692049189094364332567435817881934511297123972799646723302813083835942624121493
18//! * Valuation(q - 1, 2) = 46
19//! * Valuation(r - 1, 2) = 2
20//! * Curve equation: ax^2 + y^2 =1 + dx^2y^2, where
21//! * a = -1
22//! * d = 79743
23
24#[cfg(feature = "r1cs")]
25pub mod constraints;
26mod curves;
27mod fields;
28
29pub use curves::*;
30pub use fields::*;