pub struct UnivariateVerifierParam<E: Pairing> {
pub g: E::G1Affine,
pub h: E::G2Affine,
pub beta_h: E::G2Affine,
pub powers_of_h: Vec<E::G2Affine>,
pub powers_of_g: Vec<E::G1Affine>,
}
Expand description
UnivariateVerifierParam
is used to check evaluation proofs for a given
commitment.
Fields§
§g: E::G1Affine
TODO: remove g, h and beta_h The generator of G1.
h: E::G2Affine
The generator of G2.
beta_h: E::G2Affine
\beta times the above generator of G2.
powers_of_h: Vec<E::G2Affine>
powers of \beta time the generator h of G2: only used for multi-point openings
powers_of_g: Vec<E::G1Affine>
powers of \beta time the generator g of G1: only used for multi-point openings
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for UnivariateVerifierParam<E>
impl<E: Pairing> CanonicalDeserialize for UnivariateVerifierParam<E>
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<E: Pairing> CanonicalSerialize for UnivariateVerifierParam<E>
impl<E: Pairing> CanonicalSerialize for UnivariateVerifierParam<E>
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<E: Clone + Pairing> Clone for UnivariateVerifierParam<E>
impl<E: Clone + Pairing> Clone for UnivariateVerifierParam<E>
Source§fn clone(&self) -> UnivariateVerifierParam<E>
fn clone(&self) -> UnivariateVerifierParam<E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug + Pairing> Debug for UnivariateVerifierParam<E>
impl<E: Debug + Pairing> Debug for UnivariateVerifierParam<E>
Source§impl<E: Pairing> Default for UnivariateVerifierParam<E>
impl<E: Pairing> Default for UnivariateVerifierParam<E>
Source§impl<E: PartialEq + Pairing> PartialEq for UnivariateVerifierParam<E>
impl<E: PartialEq + Pairing> PartialEq for UnivariateVerifierParam<E>
Source§impl<E: Pairing> Valid for UnivariateVerifierParam<E>
impl<E: Pairing> Valid for UnivariateVerifierParam<E>
impl<E: Eq + Pairing> Eq for UnivariateVerifierParam<E>
impl<E: Pairing> StructuralPartialEq for UnivariateVerifierParam<E>
Auto Trait Implementations§
impl<E> Freeze for UnivariateVerifierParam<E>
impl<E> RefUnwindSafe for UnivariateVerifierParam<E>where
<E as Pairing>::G1Affine: RefUnwindSafe,
<E as Pairing>::G2Affine: RefUnwindSafe,
impl<E> Send for UnivariateVerifierParam<E>
impl<E> Sync for UnivariateVerifierParam<E>
impl<E> Unpin for UnivariateVerifierParam<E>
impl<E> UnwindSafe for UnivariateVerifierParam<E>where
<E as Pairing>::G1Affine: UnwindSafe,
<E as Pairing>::G2Affine: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more