fix for V-SCT-VUL-007 and V-SCT-VUL-011

This commit is contained in:
Kevin Jue
2023-12-18 16:09:08 -08:00
parent 297a82025f
commit cc51ec1815
5 changed files with 52 additions and 23 deletions

View File

@@ -71,10 +71,15 @@ func (p *PlonkChip) evalL0(x gl.QuadraticExtensionVariable, xPowN gl.QuadraticEx
glApi.ScalarMulExtension(x, p.DEGREE),
p.DEGREE_QE,
)
return glApi.DivExtension(
quotient, hasQuotient := glApi.DivExtension(
evalZeroPoly,
denominator,
)
p.api.AssertIsEqual(hasQuotient, frontend.Variable(1))
return quotient
}
func (p *PlonkChip) checkPartialProducts(