gnark-crypto icon indicating copy to clipboard operation
gnark-crypto copied to clipboard

bug: fft

Open ThomasPiellard opened this issue 7 months ago • 0 comments

Description

This sample causes a panic:

a := make([]fr.Element, 4)
f := fft.NewDomain(4, fft.WithoutPrecompute())
f.FFTInverse(a, fft.DIF)

Possible Fix

twiddlesInv = make([][]fr.Element, nbStages-twiddlesStartStage) -> nbStages=2, twiddlesStartStage=3 here, the indices should be adjusted

Your Environment

  • gnark-crypto version used: 0.13.0

ThomasPiellard avatar Jul 21 '24 21:07 ThomasPiellard