ark_pallas/
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 prime-order curve Pallas, generated by
12//! [Daira Hopwood](https://github.com/zcash/pasta). The main feature of this
13//! curve is that it forms a cycle with Vesta, i.e. its scalar field and base
14//! field respectively are the base field and scalar field of Vesta.
15//!
16//!
17//! Curve information:
18//! * Base field: q =
19//!   28948022309329048855892746252171976963363056481941560715954676764349967630337
20//! * Scalar field: r =
21//!   28948022309329048855892746252171976963363056481941647379679742748393362948097
22//! * Curve equation: y^2 = x^3 + 5
23//! * Valuation(q - 1, 2) = 32
24//! * Valuation(r - 1, 2) = 32
25
26#[cfg(feature = "r1cs")]
27pub mod constraints;
28#[cfg(feature = "curve")]
29mod curves;
30#[cfg(any(feature = "scalar_field", feature = "base_field"))]
31mod fields;
32
33#[cfg(feature = "curve")]
34pub use curves::*;
35#[cfg(any(feature = "scalar_field", feature = "base_field"))]
36pub use fields::*;