Skip to content

Commit

Permalink
fix: edge case with PLONK backend when 1 constraint (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub authored Jul 25, 2024
1 parent af21593 commit d6d85d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/math/emulated/element_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,10 @@ func (c *ReduceStrictCircuit[T]) Define(api frontend.API) error {
for i := range elR.Limbs {
api.AssertIsEqual(elR.Limbs[i], c.Expected[i])
}

// TODO: dummy constraint to have at least two constraints in the circuit.
// Otherwise PLONK setup phase fails.
api.AssertIsEqual(c.Expected[0], elR.Limbs[0])
return nil
}

Expand Down

0 comments on commit d6d85d4

Please sign in to comment.