arnaucube
arnaucube/circomPublic Self-hosted repository
circom/c/zqfield.h
c/zqfield.hRaw
 1#ifndef ZQFIELD_H
 2#define ZQFIELD_H
 3
 4#include "circom.h"
 5
 6class ZqField {
 7
 8public:
 9    BigInt p;
10    BigInt one;
11    BigInt zero;
12    ZqField(PBigInt ap);
13
14    void copy(PBigInt a, PBigInt b);
15    void add(PBigInt r,PBigInt a, PBigInt b);
16    void lt(PBigInt r, PBigInt a, PBigInt b);
17    int isTrue(PBigInt a);
18};
19
20#endif // ZQFIELD_H