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.

29 lines
740 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 secp256r1 curve.
  11. //! Source: <https://neuromancer.sk/std/secg/secp256r1>
  12. //!
  13. //! Curve information:
  14. //! * Base field: q =
  15. //! 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
  16. //! * Scalar field: r =
  17. //! 0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551
  18. //! * a = -3
  19. //! * b = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b
  20. //! * Curve equation: y^2 = x^3 + ax + b
  21. #[cfg(feature = "r1cs")]
  22. pub mod constraints;
  23. mod curves;
  24. mod fields;
  25. pub use curves::*;
  26. pub use fields::*;