arnaucube
arnaucube/gnark-plonky2-verifierPublic Self-hosted repository
fix for V-SCT-VUL-002 and V-SCT-VUL-003
Kevin Jue kjue235@gmail.com
Mon, 18 Dec 2023 15:42:09 -0800
commit

297a82025f476ac0268cfec3852735e06c637f31

parent

6af5b0ae93be22fb0502bfdcb05029e2ef8e893d

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 }