Browse Source

fix for V-SCT-VUL-001

main
Kevin Jue 1 year ago
parent
commit
9e963933f9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      goldilocks/base.go

+ 2
- 0
goldilocks/base.go

@ -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…
Cancel
Save