fix for V-SCT-VUL-002 and V-SCT-VUL-003
Kevin Jue kjue235@gmail.com
Mon, 18 Dec 2023 15:42:09 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
goldilocks/base.go
→
goldilocks/base.go
@@ -193,7 +193,7 @@
remainder := NewVariable(result[1]) p.RangeCheck(remainder) - p.api.AssertIsEqual(x, p.api.Add(p.api.Mul(quotient, MODULUS), remainder.Limb)) + p.api.AssertIsEqual(x.Limb, p.api.Add(p.api.Mul(quotient, MODULUS), remainder.Limb)) return remainder }@@ -218,7 +218,7 @@
remainder := NewVariable(result[1]) p.RangeCheck(remainder) - p.api.AssertIsEqual(x, p.api.Add(p.api.Mul(quotient, MODULUS), remainder.Limb)) + p.api.AssertIsEqual(x.Limb, p.api.Add(p.api.Mul(quotient, MODULUS), remainder.Limb)) return remainder }