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

Feat/fflonk #498

Merged
merged 69 commits into from
Oct 9, 2024
Merged

Feat/fflonk #498

merged 69 commits into from
Oct 9, 2024

Conversation

ThomasPiellard
Copy link
Contributor

Description

Implementation of shplonk
Implementation of fflonk (only the commitment)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

Please describe the tests that you ran or implemented to verify your changes. Provide instructions so we can reproduce.

  • see fflonk_test.go
  • see shplonk_test_go

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I did not modify files generated from templates
  • golangci-lint does not output errors locally
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@ivokub
Copy link
Collaborator

ivokub commented Sep 19, 2024

As a note - we discussed with @ThomasPiellard about how to compute the n-ths roots of the input points. But in the field implementations we have, n is usually a power of two and we can do successive square roots.

@ivokub
Copy link
Collaborator

ivokub commented Sep 20, 2024

A few TODOs for another PR to improve the packages:

  • instead of using []fr.Element for points in shplonk, we could define a structure a la struct Points { Pts []fr.Element, Shape shplonk.PointShape}. Depending on the shape of the points (they are roots of unity, or some known powers etc.) we can have different approaches for polynomial multiplication etc.

@ivokub ivokub self-requested a review October 7, 2024 16:28
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

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

Looks good now. There are still a few issues unresolved, but can currently leave as is as the package is experimental anyway. I'll create a new issue to gather the open issues (see #550)

@ivokub ivokub mentioned this pull request Oct 8, 2024
5 tasks
@ThomasPiellard ThomasPiellard merged commit ef45936 into master Oct 9, 2024
5 checks passed
@ThomasPiellard ThomasPiellard deleted the feat/fflonk branch October 9, 2024 08:06
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