mirror of
https://github.com/arnaucube/gnark-plonky2-verifier.git
synced 2026-01-12 00:51:33 +01:00
fix for V-SCT-VUL-027
This commit is contained in:
@@ -151,7 +151,7 @@ func (g *RandomAccessGate) EvalUnfiltered(
|
||||
y := listItems[i+1]
|
||||
|
||||
// This is computing `if b { x } else { y }`
|
||||
// i.e. `bx - (by-y)`.
|
||||
// i.e. `by - (bx - x)`.
|
||||
mul1 := glApi.MulExtension(b, x)
|
||||
sub1 := glApi.SubExtension(mul1, x)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
var reducingExtensionGateRegex = regexp.MustCompile("ReducingExtensionGate { num_coeffs: (?P<numCoeffs>[0-9]+) }")
|
||||
|
||||
func deserializeReducingExtensionGate(parameters map[string]string) Gate {
|
||||
// Has the format "ReducingGate { num_coeffs: 33 }"
|
||||
// Has the format "ReducingExtensionGate { num_coeffs: 33 }"
|
||||
numCoeffs, hasNumCoeffs := parameters["numCoeffs"]
|
||||
if !hasNumCoeffs {
|
||||
panic("Missing field num_coeffs in ReducingExtensionGate")
|
||||
|
||||
Reference in New Issue
Block a user