Browse Source

fix for V-SCT-VUL-013

main
Kevin Jue 1 year ago
parent
commit
5dd6da255e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      plonk/gates/coset_interpolation_gate.go

+ 4
- 0
plonk/gates/coset_interpolation_gate.go

@ -199,6 +199,10 @@ func (g *CosetInterpolationGate) EvalUnfiltered(
startIndex := 1 + (g.degree-1)*(i+1) startIndex := 1 + (g.degree-1)*(i+1)
endIndex := startIndex + g.degree - 1 endIndex := startIndex + g.degree - 1
if endIndex > g.numPoints() {
endIndex = g.numPoints()
}
computedEval, computedProd = glApi.PartialInterpolateExtAlgebra( computedEval, computedProd = glApi.PartialInterpolateExtAlgebra(
domain[startIndex:endIndex], domain[startIndex:endIndex],
values[startIndex:endIndex], values[startIndex:endIndex],

Loading…
Cancel
Save