zkBob / fawkes-crypto

Fawkes-Crypto - zkSNARKs framework
https://github.com/zeropoolnetwork/fawkes-crypto
Apache License 2.0
2 stars 1 forks source link

Parse gates before proving #13

Closed AllFi closed 1 year ago

AllFi commented 1 year ago

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:

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.