[−][src]Struct dusk_plonk::commitment_scheme::kzg10::key::OpeningKey
Opening Key is used to verify opening proofs made about a committed polynomial.
Fields
g: G1Affine
The generator of G1.
h: G2Affine
The generator of G2.
beta_h: G2Affine
\beta times the above generator of G2.
prepared_h: G2Prepared
The generator of G2, prepared for use in pairings.
prepared_beta_h: G2Prepared
\beta times the above generator of G2, prepared for use in pairings.
Implementations
impl OpeningKey
[src][−]
pub fn check(&self, point: Scalar, proof: Proof) -> bool
[src][−]
Checks that a polynomial p
was evaluated at a point z
and returned the value specified v
.
ie. v = p(z).
pub fn batch_check(
&self,
points: &[Scalar],
proofs: &[Proof],
transcript: &mut Transcript
) -> Result<(), Error>
[src][−]
&self,
points: &[Scalar],
proofs: &[Proof],
transcript: &mut Transcript
) -> Result<(), Error>
Checks whether a batch of polynomials evaluated at different points, returned their specified value.
Trait Implementations
impl Clone for OpeningKey
[src][+]
impl Debug for OpeningKey
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for OpeningKey
impl Send for OpeningKey
impl Sync for OpeningKey
impl Unpin for OpeningKey
impl UnwindSafe for OpeningKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,