From 888b247e02007c70c00fa277bf96ae11c56773f0 Mon Sep 17 00:00:00 2001 From: Kevin Jue Date: Tue, 19 Dec 2023 10:56:25 -0800 Subject: [PATCH] fix for V-SCT-VUL-023 --- plonk/gates/coset_interpolation_gate.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plonk/gates/coset_interpolation_gate.go b/plonk/gates/coset_interpolation_gate.go index f8f2494..a9a835d 100644 --- a/plonk/gates/coset_interpolation_gate.go +++ b/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))