Browse Source

fix for V-SCT-VUL-023

main
Kevin Jue 1 year ago
parent
commit
888b247e02
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      plonk/gates/coset_interpolation_gate.go

+ 3
- 0
plonk/gates/coset_interpolation_gate.go

@ -32,6 +32,9 @@ func deserializeCosetInterpolationGate(parameters map[string]string) Gate {
if err != nil {
panic("invalid degree in CosetInterpolationGate")
}
if degreeInt < 2 {
panic("degree must be at least 2 in CosetInterpolationGate")
}
barycentricWeightsStr := strings.Split(barycentricWeights, ",")
barycentricWeightsInt := make([]goldilocks.Element, len(barycentricWeightsStr))

Loading…
Cancel
Save