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

Parse gates before proving #13

Merged
merged 6 commits into from May 22, 2023
Merged

Parse gates before proving #13

merged 6 commits into from May 22, 2023

Conversation

AllFi
Copy link

@AllFi AllFi commented Apr 3, 2023

This pull request adds the feature to decompress and parse gates prior to the proving process. The reason why this can be useful is described in the issue.

The interface of Parameters has been extended with the following methods:

  • precompute - this method decompress and parse gates
  • precompute_memory_size - this method evaluates the required memory size (in bytes) for precomputed data
  • get_witness_rcs_precomputed - this method creates a witness that utilizes pre-parsed gates during the proving process

The function prove_precomputed has been added to use pre-parsed gates during the proving process.

GateSource, GateIterator, GateWrapper have been implemented to support both approaches during the proving process without unnecessary clones.

@AllFi AllFi marked this pull request as ready for review April 11, 2023 08:09
@r0wdy1 r0wdy1 merged commit 9783ad0 into master May 22, 2023
@EvgenKor EvgenKor deleted the feature/preparse_gates branch February 2, 2024 06:42
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

2 participants