ark_secp256r1/
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 secp256r1 curve.
12//! Source: <https://neuromancer.sk/std/secg/secp256r1>
13//!
14//! Curve information:
15//! * Base field: q =
16//!   0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
17//! * Scalar field: r =
18//!   0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551
19//! * a = -3
20//! * b = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b
21//! * Curve equation: y^2 = x^3 + ax + b
22
23#[cfg(feature = "r1cs")]
24pub mod constraints;
25mod curves;
26mod fields;
27
28pub use curves::*;
29pub use fields::*;