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: use precomputation on input set keys #69

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AaronFeickert
Copy link
Collaborator

@AaronFeickert AaronFeickert commented Mar 21, 2024

The curve library supports precomputation, which allows us to evaluate multiscalar multiplication operations using both fixed and dynamic values. This means we can generate precomputation tables for input set keys in advance, and use them when generating and verifying proofs.

This PR adds such functionality. However, it surprisingly results in no efficiency benefit (and possibly even an efficiency regression); this is unclear and could use some digging.

Keeping this open as a draft in case a solution is found.

@AaronFeickert
Copy link
Collaborator Author

AaronFeickert commented Mar 21, 2024

I also tested using an Rc instead of an Arc to store the precomputed values, in case this made a difference. It did not!

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.

None yet

1 participant