Browse Source

fix for V-SCT-VUL-003

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

+ 3
- 0
goldilocks/base.go

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

Loading…
Cancel
Save