Function halo2_proofs::plonk::keygen_vk

source ยท
pub fn keygen_vk<C, P, ConcreteCircuit>(
    params: &P,
    circuit: &ConcreteCircuit
) -> 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. By default, selector compression is turned ON.

NOTE: This keygen_vk is legacy one, assuming that compress_selector: true. Hence, it is HIGHLY recommended to pair this util with keygen_pk. In addition, when using this for key generation, user MUST use compress_selectors: true.