fix for V-SCT-VUL-001

This commit is contained in:
Kevin Jue
2023-12-18 12:35:12 -08:00
parent 89b5a01e4b
commit 9e963933f9

View File

@@ -236,6 +236,8 @@ func (p *Chip) Inverse(x Variable) Variable {
}
inverse := NewVariable(result[0])
p.RangeCheck(inverse)
product := p.Mul(inverse, x)
p.api.AssertIsEqual(product.Limb, frontend.Variable(1))
return inverse