You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
936 B

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