mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-01-04 06:03:12 +00:00
fix for V-SCT-VUL-014
This commit is contained in:
parent
5dd6da255e
commit
2043890a76
@ -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))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user