privacy-scaling-explorations / halo2

https://privacy-scaling-explorations.github.io/halo2/
Other
207 stars 129 forks source link

Add `ParamsVerifierKZG` #301

Closed davidnevadoc closed 5 months ago

davidnevadoc commented 7 months ago

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 of n-sized vectors of G1 elements, where n 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

davidnevadoc commented 7 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.

CPerezz commented 7 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.

We should consider this as related to #176

davidnevadoc commented 5 months ago

Overridden by #318