arnaucube
arnaucube/gnark-plonky2-verifierPublic Self-hosted repository
fix for V-SCT-VUL-017
Kevin Jue kjue235@gmail.com
Mon, 18 Dec 2023 18:03:48 -0800
commit

2fab6a94b00197999c5ca17c0502e5e515ddcb6e

parent

ac49898dd16a8b3983781780503e470de56656f4

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M fri/fri.go → fri/fri.go

@@ -336,7 +336,7 @@ // OPTIMIZE - Since the size of the evals array should be constant (e.g. 2^arityBits),

// we can just hard code the permutation. permutedEvals := make([]gl.QuadraticExtensionVariable, len(evals)) for i := uint8(0); i <= uint8(len(evals)-1); i++ { - newIndex := bits.Reverse8(i) >> arityBits + newIndex := bits.Reverse8(i) >> (8 - arityBits) permutedEvals[newIndex] = evals[i] }