mirror of
https://github.com/arnaucube/gnark-plonky2-verifier.git
synced 2026-01-11 16:41:32 +01:00
fix for V-SCT-VUL-030
This commit is contained in:
@@ -90,7 +90,9 @@ func (g *PoseidonMdsGate) EvalUnfiltered(
|
||||
for i := uint64(0); i < poseidon.SPONGE_WIDTH; i++ {
|
||||
output := vars.GetLocalExtAlgebra(g.WireOutput(i))
|
||||
diff := glApi.SubExtensionAlgebra(output, computed_outputs[i])
|
||||
constraints = append(constraints, diff[0], diff[1])
|
||||
for i := 0; i < gl.D; i++ {
|
||||
constraints = append(constraints, diff[i])
|
||||
}
|
||||
}
|
||||
|
||||
return constraints
|
||||
|
||||
@@ -38,7 +38,7 @@ func (g *PublicInputGate) EvalUnfiltered(
|
||||
|
||||
wires := g.WiresPublicInputsHash()
|
||||
hash_parts := vars.publicInputsHash
|
||||
for i := 0; i < 4; i++ {
|
||||
for i := 0; i < len(wires); i++ {
|
||||
wire := wires[i]
|
||||
hash_part := hash_parts[i]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user