ark_secp384r1/
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 secp384r1 curve.
12//! Source: <https://neuromancer.sk/std/nist/P-384>
13//!
14//! Curve information:
15//! * Base field: q =
16//!   0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff
17//! * Scalar field: r =
18//!   0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973
19//! * a = -3
20//! * b = 0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef
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::*;