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.

28 lines
687 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 ed25519 twisted Edwards curve.
  11. //!
  12. //! Curve information:
  13. //! * Base field: q =
  14. //! 57896044618658097711785492504343953926634992332820282019728792003956564819949
  15. //! * Scalar field: r =
  16. //! 7237005577332262213973186563042994240857116359379907606001950938285454250989
  17. //! * Curve equation: ax^2 + y^2 =1 + dx^2y^2, where
  18. //! * a = -1
  19. //! * d = -121665 / 121666
  20. #[cfg(feature = "r1cs")]
  21. pub mod constraints;
  22. mod curves;
  23. mod fields;
  24. pub use curves::*;
  25. pub use fields::*;