snark_verifier/pcs/
kzg.rsuse crate::util::arithmetic::CurveAffine;
mod accumulation;
mod accumulator;
mod decider;
mod multiopen;
pub use accumulation::{KzgAs, KzgAsProvingKey, KzgAsVerifyingKey};
pub use accumulator::{KzgAccumulator, LimbsEncoding};
pub use decider::KzgDecidingKey;
pub use multiopen::{Bdfg21, Bdfg21Proof, Gwc19, Gwc19Proof};
#[cfg(feature = "loader_halo2")]
pub use accumulator::LimbsEncodingInstructions;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
pub struct KzgSuccinctVerifyingKey<C: Copy> {
pub g: C,
}
impl<C: CurveAffine> KzgSuccinctVerifyingKey<C> {
pub fn new(g: C) -> Self {
Self { g }
}
}
impl<C: CurveAffine> From<C> for KzgSuccinctVerifyingKey<C> {
fn from(g: C) -> KzgSuccinctVerifyingKey<C> {
KzgSuccinctVerifyingKey::new(g)
}
}