arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
ark-curves-cherry-picked/ed_on_bw6_761/src/lib.rs
ed_on_bw6_761/src/lib.rsRaw
 1#![cfg_attr(not(feature = "std"), no_std)]
 2#![forbid(unsafe_code)]
 3//! This library implements a twisted Edwards curve whose base field is the
 4//! scalar field of the curve BW6_761.  *It is the same curve as that in
 5//! `ark-ed_on_cp6_782`.* This allows defining cryptographic primitives that use
 6//! elliptic curves over the scalar field of the latter curve.  This curve was
 7//! generated as part of the paper [\[BCGMMW20, “Zexe”\]](https://eprint.iacr.org/2018/962).
 8//!
 9//! Curve information:
10//! * Base field: q = 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177
11//! * Scalar field: r = 32333053251621136751331591711861691692049189094364332567435817881934511297123972799646723302813083835942624121493
12//! * Valuation(q - 1, 2) = 46
13//! * Valuation(r - 1, 2) = 2
14//! * Curve equation: ax^2 + y^2 =1 + dx^2y^2, where
15//!    * a = -1
16//!    * d = 79743
17
18pub use ark_ed_on_cp6_782::*;
19
20#[cfg(feature = "r1cs")]
21pub mod constraints;