Struct ark_poly_commit::kzg10::KZG10 [−][src]
pub struct KZG10<E: PairingEngine, P: UVPolynomial<E::Fr>> { /* fields omitted */ }
Expand description
KZG10 is an implementation of the polynomial commitment scheme of
Kate, Zaverucha and Goldbgerg
Implementations
impl<E, P> KZG10<E, P> where
E: PairingEngine,
P: UVPolynomial<E::Fr, Point = E::Fr>,
&'a P: Div<&'b P, Output = P>, [src]
impl<E, P> KZG10<E, P> where
E: PairingEngine,
P: UVPolynomial<E::Fr, Point = E::Fr>,
&'a P: Div<&'b P, Output = P>, [src]Constructs public parameters when given as input the maximum degree degree
for the polynomial commitment scheme.
Outputs a commitment to polynomial.
Compute witness polynomial.
The witness polynomial w(x) the quotient of the division (p(x) - p(z)) / (x - z) Observe that this quotient does not change with z because p(z) is the remainder term. We can therefore omit p(z) when computing the quotient.
pub fn check(
vk: &VerifierKey<E>,
comm: &Commitment<E>,
point: E::Fr,
value: E::Fr,
proof: &Proof<E>
) -> Result<bool, Error>[src]
pub fn check(
vk: &VerifierKey<E>,
comm: &Commitment<E>,
point: E::Fr,
value: E::Fr,
proof: &Proof<E>
) -> Result<bool, Error>[src]Verifies that value is the evaluation at point of the polynomial
committed inside comm.
Auto Trait Implementations
impl<E, P> RefUnwindSafe for KZG10<E, P> where
E: RefUnwindSafe,
P: RefUnwindSafe, impl<E, P> UnwindSafe for KZG10<E, P> where
E: UnwindSafe,
P: UnwindSafe,