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.

20 lines
344 B

4 years ago
4 years ago
4 years ago
  1. #ifndef ZQFIELD_H
  2. #define ZQFIELD_H
  3. #include "circom.h"
  4. class ZqField {
  5. public:
  6. BigInt p;
  7. BigInt one;
  8. BigInt zero;
  9. ZqField(PBigInt ap);
  10. void copyn(PBigInt a, PBigInt b, int n);
  11. void add(PBigInt r,PBigInt a, PBigInt b);
  12. void lt(PBigInt r, PBigInt a, PBigInt b);
  13. int isTrue(PBigInt a);
  14. };
  15. #endif // ZQFIELD_H