mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-04-24 03:03:29 +00:00
fix for V-SCT-VUL-001
This commit is contained in:
parent
89b5a01e4b
commit
9e963933f9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user