fix for V-SCT-VUL-002

This commit is contained in:
Kevin Jue 2023-12-18 12:46:53 -08:00
parent 9e963933f9
commit 85d20ce656

View File

@ -190,6 +190,9 @@ func (p *Chip) Reduce(x Variable) Variable {
remainder := NewVariable(result[1])
p.RangeCheck(remainder)
p.api.AssertIsEqual(x, p.api.Add(p.api.Mul(quotient, MODULUS), remainder.Limb))
return remainder
}