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.

27 lines
664 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 secp256k1 curve.
  11. //! Source: <https://en.bitcoin.it/wiki/Secp256k1>
  12. //!
  13. //! Curve information:
  14. //! * Base field: q =
  15. //! 115792089237316195423570985008687907853269984665640564039457584007908834671663
  16. //! * Scalar field: r =
  17. //! 115792089237316195423570985008687907852837564279074904382605163141518161494337
  18. //! * Curve equation: y^2 = x^3 + 7
  19. #[cfg(feature = "r1cs")]
  20. pub mod constraints;
  21. mod curves;
  22. mod fields;
  23. pub use curves::*;
  24. pub use fields::*;