constants.py 584 B

1234567891011121314151617181920212223242526
  1. from typing import (
  2. Tuple,
  3. )
  4. #
  5. # SECPK1N
  6. #
  7. SECPK1_P: int = 2**256 - 2**32 - 977
  8. SECPK1_N: int = (
  9. 115792089237316195423570985008687907852837564279074904382605163141518161494337
  10. )
  11. SECPK1_A: int = 0
  12. SECPK1_B: int = 7
  13. SECPK1_Gx: int = (
  14. 55066263022277343669578718895168534326250603453777594175500187360389116729240
  15. )
  16. SECPK1_Gy: int = (
  17. 32670510020758816978083085130507043184471273380659243275938904335757337482424
  18. )
  19. SECPK1_G: Tuple[int, int] = (SECPK1_Gx, SECPK1_Gy)
  20. #
  21. # Internal representations of Jacobian identity points
  22. #
  23. IDENTITY_POINTS = ((0, 0, 0), (0, 0, 1))