mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-24 04:33:50 +01:00
Co-authored-by: Ying Tong Lai <yingtong@electriccoin.co> Co-authored-by: Daira Hopwood <daira@jacaranda.org> Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu> Co-authored-by: therealyingtong <yingtong@z.cash>
34 lines
936 B
Rust
34 lines
936 B
Rust
#![cfg_attr(not(feature = "std"), no_std)]
|
|
#![deny(
|
|
warnings,
|
|
unused,
|
|
future_incompatible,
|
|
nonstandard_style,
|
|
rust_2018_idioms
|
|
)]
|
|
#![forbid(unsafe_code)]
|
|
|
|
//! This library implements the prime-order curve Vesta, generated by
|
|
//! [Daira Hopwood](https://github.com/zcash/pasta). The main feature of this
|
|
//! curve is that it forms a cycle with Pallas, i.e. its scalar field and base
|
|
//! field respectively are the base field and scalar field of Pallas.
|
|
//!
|
|
//!
|
|
//! Curve information:
|
|
//! Vesta:
|
|
//! * Base field: q =
|
|
//! 28948022309329048855892746252171976963363056481941647379679742748393362948097
|
|
//! * Scalar field: r =
|
|
//! 28948022309329048855892746252171976963363056481941560715954676764349967630337
|
|
//! * Curve equation: y^2 = x^3 + 5
|
|
//! * Valuation(q - 1, 2) = 32
|
|
//! * Valuation(r - 1, 2) = 32
|
|
|
|
#[cfg(feature = "r1cs")]
|
|
pub mod constraints;
|
|
mod curves;
|
|
mod fields;
|
|
|
|
pub use curves::*;
|
|
pub use fields::*;
|