Browse Source

fix for V-SCT-VUL-014

main
Kevin Jue 1 year ago
parent
commit
2043890a76
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      goldilocks/base.go

+ 1
- 1
goldilocks/base.go

@ -394,7 +394,7 @@ func TwoAdicSubgroup(nLog uint64) []goldilocks.Element {
rootOfUnity := PrimitiveRootOfUnity(nLog) rootOfUnity := PrimitiveRootOfUnity(nLog)
res = append(res, goldilocks.NewElement(1)) 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] lastElement := res[len(res)-1]
res = append(res, *lastElement.Mul(&lastElement, &rootOfUnity)) res = append(res, *lastElement.Mul(&lastElement, &rootOfUnity))
} }

Loading…
Cancel
Save