Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/fft cosets #145

Merged
merged 13 commits into from
Feb 14, 2022
Merged

Fix/fft cosets #145

merged 13 commits into from
Feb 14, 2022

Conversation

ThomasPiellard
Copy link
Contributor

@ThomasPiellard ThomasPiellard commented Feb 3, 2022

This PR modifes the FFT so the cosets are taken in Fr* \ (Z/2^nZ) where (Z/2^nZ) is identified with the maximum power-of-two multiplicative subgroup of Fr*, instead of being taken in in (Z/2^nZ) which prevented us from using the full two-adicity.

Plookup, permutation argument, etc have been modified accordingly.

API breaking changes:

  • NewDomain(m, depth uint64, precomputeReversedTable bool) -> NewDomain(m)
  • FFT(a []fr.Element, decimation Decimation, coset uint64) -> FFT(a []fr.Element, decimation Decimation, coset ...bool). When coset is specified and set to true, the FFT is done on a coset (precomputed and not up to the user).

It fixes #145 .

@ThomasPiellard ThomasPiellard marked this pull request as ready for review February 9, 2022 11:39
Copy link
Collaborator

@gbotrel gbotrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of addchain old binary files to remove from this PR, must be a reliq from a old version + git add.

@gbotrel gbotrel merged commit 2cb4678 into develop Feb 14, 2022
@gbotrel gbotrel deleted the fix/fft_cosets branch February 14, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants