Skip to content

Commit

Permalink
Make te_cond_add.rs with actuall TE constrains compile
Browse files Browse the repository at this point in the history
  • Loading branch information
drskalman committed Sep 4, 2024
1 parent 65e13b3 commit 8ec5484
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions common/src/gadgets/te_cond_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,23 @@ impl<F, Curve> ProverGadget<F> for TeCondAdd<F, Affine<Curve>>
&(
b *
&(
x3 *
&(
&(y1 * y2 -
te_a_coeff *
&(x1 * x2)
&(
x3 *
&(
&(y1 * y2) -

&(te_a_coeff *

&(x1 * x2)
)

)
) -
&(x1 * y1 + y2* x1)
)
)
-

&(
&(x1 * y1) + &(y2* x1)
)
)
) +
&(
Expand All @@ -117,10 +125,10 @@ impl<F, Curve> ProverGadget<F> for TeCondAdd<F, Affine<Curve>>
let mut c2 =
&(
b *
&( y3 *
&(x1 * y1 - x2 * y2) -

&(x1 * y1 - x2 * y2)
&( &(y3 *
&(
&(x1 * y1) - &(x2 * y2))) -
&(&(x1 * y1) - &(x2 * y2))
)
)
+
Expand Down

0 comments on commit 8ec5484

Please sign in to comment.