arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
ark-curves-cherry-picked/ed25519/src/lib.rs
ed25519/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 ed25519 twisted Edwards curve.
12//!
13//! Curve information:
14//! * Base field: q =
15//!   57896044618658097711785492504343953926634992332820282019728792003956564819949
16//! * Scalar field: r =
17//!   7237005577332262213973186563042994240857116359379907606001950938285454250989
18//! * Curve equation: ax^2 + y^2 =1 + dx^2y^2, where
19//!    * a = -1
20//!    * d = -121665 / 121666
21
22#[cfg(feature = "r1cs")]
23pub mod constraints;
24mod curves;
25mod fields;
26
27pub use curves::*;
28pub use fields::*;