fix for V-SCT-VUL-014

This commit is contained in:
Kevin Jue 2023-12-18 17:23:58 -08:00
parent 5dd6da255e
commit 2043890a76

View File

@ -394,7 +394,7 @@ func TwoAdicSubgroup(nLog uint64) []goldilocks.Element {
rootOfUnity := PrimitiveRootOfUnity(nLog)
res = append(res, goldilocks.NewElement(1))
for i := 0; i < (1 << nLog); i++ {
for i := 0; i < (1<<nLog)-1; i++ {
lastElement := res[len(res)-1]
res = append(res, *lastElement.Mul(&lastElement, &rootOfUnity))
}