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.

36 lines
1.1 KiB

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