Function halo2_proofs::plonk::keygen_vk_custom
source ยท pub fn keygen_vk_custom<C, P, ConcreteCircuit>(
params: &P,
circuit: &ConcreteCircuit,
compress_selectors: bool
) -> Result<VerifyingKey<C>, Error>where
C: CurveAffine,
P: Params<C>,
ConcreteCircuit: Circuit<C::Scalar>,
C::Scalar: FromUniformBytes<64>,
Expand description
Generate a VerifyingKey
from an instance of Circuit
.
The selector compression optimization is turned on only if compress_selectors
is true
.
NOTE: This keygen_vk_custom
MUST share the same compress_selectors
with
ProvingKey
generation process.
Otherwise, the user could get unmatching pk/vk pair.
Hence, it is HIGHLY recommended to pair this util with keygen_pk_custom
.