Closed davidnevadoc closed 5 months ago
Where's all this read/write impls comming from??
These are adaptations from the implementations of ParamsKZG
, they are equal just with different fields in the struct.
Where's all this read/write impls comming from??
These are adaptations from the implementations of
ParamsKZG
, they are equal just with different fields in the struct.
We should consider this as related to #176
Overridden by #318
Description
The aim of this PR is to allow the verification of a KZG proof without having to deal with the complete KZG parameters.
ParamsKZG
contains 2 G2 elements and 2 vectors ofn
-sized vectors of G1 elements, wheren
is the size of the circuit. The verifier only needs the 2 G2 elements, and as many G1 elements as public inputs in the circuit.Changes
ParamsVerifierKZG
. This struct contains the bare minimum info needed to verify a proof.get_g
from ParamsProver.verifier_params
->into_verifier_params
. I'm not 100% convinced how this ended up, so any suggestion is greatly appreciated.Adjust to function calls to use verifier parameters when needed, instead of the full parameters.
Closes #280