mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-01-02 13:13:06 +00:00
fix for V-SCT-VUL-002
This commit is contained in:
parent
9e963933f9
commit
85d20ce656
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user