diff --git a/yarn-project/foundation/src/fields/fields.ts b/yarn-project/foundation/src/fields/fields.ts index 8939b7adb7c..08443b00468 100644 --- a/yarn-project/foundation/src/fields/fields.ts +++ b/yarn-project/foundation/src/fields/fields.ts @@ -381,6 +381,10 @@ export class Fq extends BaseField { return new Fq((high.toBigInt() << Fq.HIGH_SHIFT) + low.toBigInt()); } + add(rhs: Fq) { + return new Fq((this.toBigInt() + rhs.toBigInt()) % Fq.MODULUS); + } + toJSON() { return { type: 'Fq',