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.

26 lines
477 B

  1. package constants
  2. import (
  3. "github.com/iden3/go-iden3-crypto/utils"
  4. "math/big"
  5. )
  6. // Q is the order of the integer field (Zq) that fits inside the SNARK.
  7. var Q *big.Int
  8. // Zero is 0.
  9. var Zero *big.Int
  10. // One is 1.
  11. var One *big.Int
  12. // MinusOne is -1.
  13. var MinusOne *big.Int
  14. func init() {
  15. Zero = big.NewInt(0)
  16. One = big.NewInt(1)
  17. MinusOne = big.NewInt(-1)
  18. Q = utils.NewIntFromString(
  19. "21888242871839275222246405745257275088548364400416034343698204186575808495617")
  20. }