fix for V-SCT-VUL-023

This commit is contained in:
Kevin Jue 2023-12-19 10:56:25 -08:00
parent 318c3ce9de
commit 888b247e02

View File

@ -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))