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

Use gnark-crypto directly for Fp #53

Merged
merged 8 commits into from
Aug 31, 2023
Merged

Use gnark-crypto directly for Fp #53

merged 8 commits into from
Aug 31, 2023

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Aug 28, 2023

This is a less ambitious attempt to avoid generated code for things we can rely directly on gnar-crypto, in particular F_p.

For F_r, we can't use gnark-crypto since they don't have that generated field, so we still need to rely on goff generated code. At some point, we can re-generate to see if we have any other improvements. We can also think about asking gnark-crypto to also include the generated field there.

TODO:

  • Test this PR with geth overlay tree benchmark to double-check all looks well reg correctness.

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
.github/workflows/go.yml Show resolved Hide resolved
bandersnatch/fp/fp.go Show resolved Hide resolved
bandersnatch/fp/sqrt.go Show resolved Hide resolved
bandersnatch/point.go Show resolved Hide resolved
@jsign jsign marked this pull request as ready for review August 28, 2023 16:13
@jsign jsign requested a review from kevaundray August 28, 2023 16:13
@kevaundray kevaundray merged commit 6e55d11 into master Aug 31, 2023
1 check passed
@jsign jsign deleted the jsign-gnarkfp branch August 31, 2023 17:52
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