Skip to content

Commit

Permalink
Pass TE add test by fixing typos in addition formula
Browse files Browse the repository at this point in the history
  • Loading branch information
drskalman committed Sep 17, 2024
1 parent 4434e1b commit a07f669
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions common/src/gadgets/te_cond_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl<F, Curve> ProverGadget<F> for TeCondAdd<F, Affine<Curve>>
&(
x3 *
&(
&(y1 * y2) -
&(y1 * y2) +

&(te_a_coeff *

Expand All @@ -114,7 +114,7 @@ impl<F, Curve> ProverGadget<F> for TeCondAdd<F, Affine<Curve>>
-

&(
&(x1 * y1) + &(y2* x1)
&(x1 * y1) + &(y2* x2)
)
)
) +
Expand All @@ -127,7 +127,7 @@ impl<F, Curve> ProverGadget<F> for TeCondAdd<F, Affine<Curve>>
b *
&( &(y3 *
&(
&(x1 * y1) - &(x2 * y2))) -
&(x1 * y2) - &(x2 * y1))) -
&(&(x1 * y1) - &(x2 * y2))
)
)
Expand Down Expand Up @@ -162,7 +162,6 @@ impl<F, Curve> ProverGadget<F> for TeCondAdd<F, Affine<Curve>>
}
}


impl<F: Field> VerifierGadget<F> for TeCondAddValues<F> {
fn evaluate_constraints_main(&self) -> Vec<F> {
let b = self.bitmask;
Expand Down

0 comments on commit a07f669

Please sign in to comment.