Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 gatesprecompute_memory_size
- this method evaluates the required memory size (in bytes) for precomputed dataget_witness_rcs_precomputed
- this method creates a witness that utilizes pre-parsed gates during the proving processThe 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.