ark_curve25519/lib.rs
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 curve25519 Montgomery curve.
12//!
13//! Curve information:
14//! * Base field: q =
15//! 57896044618658097711785492504343953926634992332820282019728792003956564819949
16//! * Scalar field: r =
17//! 7237005577332262213973186563042994240857116359379907606001950938285454250989
18//! * Curve equation: B * y^2 = x^3 + A * x^2 + x, where
19//! * A = 486662
20//! * B = 1
21
22#[cfg(feature = "r1cs")]
23pub mod constraints;
24mod curves;
25mod fields;
26
27pub use curves::*;
28pub use fields::*;