pub struct VerifierSetup<E: PairingCurve> {
pub delta_1l: Vec<E::GT>,
pub delta_1r: Vec<E::GT>,
pub delta_2l: Vec<E::GT>,
pub delta_2r: Vec<E::GT>,
pub chi: Vec<E::GT>,
pub g1_0: E::G1,
pub g2_0: E::G2,
pub h1: E::G1,
pub h2: E::G2,
pub ht: E::GT,
pub max_log_n: usize,
}Expand description
Verifier setup parameters
Contains precomputed pairing values for efficient verification. Derived from the prover setup.
Fields§
§delta_1l: Vec<E::GT>Δ₁L[k] = e(Γ₁[..2^(k-1)], Γ₂[..2^(k-1)])
delta_1r: Vec<E::GT>Δ₁R[k] = e(Γ₁[2^(k-1)..2^k], Γ₂[..2^(k-1)])
delta_2l: Vec<E::GT>Δ₂L[k] = same as Δ₁L[k]
delta_2r: Vec<E::GT>Δ₂R[k] = e(Γ₁[..2^(k-1)], Γ₂[2^(k-1)..2^k])
chi: Vec<E::GT>χ[k] = e(Γ₁[..2^k], Γ₂[..2^k])
g1_0: E::G1First G1 generator
g2_0: E::G2First G2 generator
h1: E::G1Blinding generator in G1
h2: E::G2Blinding generator in G2
ht: E::GTh_t = e(h₁, h₂)
max_log_n: usizeMaximum log₂ of polynomial size supported
Trait Implementations§
Source§impl<E: Clone + PairingCurve> Clone for VerifierSetup<E>
impl<E: Clone + PairingCurve> Clone for VerifierSetup<E>
Source§fn clone(&self) -> VerifierSetup<E>
fn clone(&self) -> VerifierSetup<E>
Returns a duplicate 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 + PairingCurve> Debug for VerifierSetup<E>
impl<E: Debug + PairingCurve> Debug for VerifierSetup<E>
Source§impl<E: PairingCurve> DoryDeserialize for VerifierSetup<E>where
Vec<E::GT>: DoryDeserialize,
E::G1: DoryDeserialize,
E::G2: DoryDeserialize,
E::GT: DoryDeserialize,
usize: DoryDeserialize,
impl<E: PairingCurve> DoryDeserialize for VerifierSetup<E>where
Vec<E::GT>: DoryDeserialize,
E::G1: DoryDeserialize,
E::G2: DoryDeserialize,
E::GT: DoryDeserialize,
usize: DoryDeserialize,
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>
Deserialize with customization flags.
Source§fn deserialize_compressed<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
fn deserialize_compressed<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
Deserialize from compressed form with validation.
Source§fn deserialize_compressed_unchecked<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
fn deserialize_compressed_unchecked<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
Deserialize from compressed form without validation. Read more
Source§fn deserialize_uncompressed<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
fn deserialize_uncompressed<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
Deserialize from uncompressed form with validation.
Source§fn deserialize_uncompressed_unchecked<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
fn deserialize_uncompressed_unchecked<R: Read>(
reader: R,
) -> Result<Self, SerializationError>where
Self: Sized,
Deserialize from uncompressed form without validation. Read more
Source§impl<E: PairingCurve> DorySerialize for VerifierSetup<E>where
Vec<E::GT>: DorySerialize,
E::G1: DorySerialize,
E::G2: DorySerialize,
E::GT: DorySerialize,
usize: DorySerialize,
impl<E: PairingCurve> DorySerialize for VerifierSetup<E>where
Vec<E::GT>: DorySerialize,
E::G1: DorySerialize,
E::G2: DorySerialize,
E::GT: DorySerialize,
usize: DorySerialize,
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>
Serialize with customization flags.
Source§fn serialized_size(&self, compress: Compress) -> usize
fn serialized_size(&self, compress: Compress) -> usize
Returns the serialized size in bytes for the given compression mode.
Source§fn serialize_compressed<W: Write>(
&self,
writer: W,
) -> Result<(), SerializationError>
fn serialize_compressed<W: Write>( &self, writer: W, ) -> Result<(), SerializationError>
Serialize in compressed form.
Source§fn compressed_size(&self) -> usize
fn compressed_size(&self) -> usize
Returns the compressed size in bytes.
Source§fn serialize_uncompressed<W: Write>(
&self,
writer: W,
) -> Result<(), SerializationError>
fn serialize_uncompressed<W: Write>( &self, writer: W, ) -> Result<(), SerializationError>
Serialize in uncompressed form.
Source§fn uncompressed_size(&self) -> usize
fn uncompressed_size(&self) -> usize
Returns the uncompressed size in bytes.
Source§impl From<ArkworksVerifierSetup> for VerifierSetup<BN254>
impl From<ArkworksVerifierSetup> for VerifierSetup<BN254>
Source§fn from(setup: ArkworksVerifierSetup) -> Self
fn from(setup: ArkworksVerifierSetup) -> Self
Converts to this type from the input type.
Source§impl From<VerifierSetup<BN254>> for ArkworksVerifierSetup
impl From<VerifierSetup<BN254>> for ArkworksVerifierSetup
Source§fn from(setup: VerifierSetup<BN254>) -> Self
fn from(setup: VerifierSetup<BN254>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for VerifierSetup<E>where
<E as PairingCurve>::G1: Freeze,
<E as PairingCurve>::G2: Freeze,
<E as PairingCurve>::GT: Freeze,
impl<E> RefUnwindSafe for VerifierSetup<E>where
<E as PairingCurve>::G1: RefUnwindSafe,
<E as PairingCurve>::G2: RefUnwindSafe,
<E as PairingCurve>::GT: RefUnwindSafe,
impl<E> Send for VerifierSetup<E>
impl<E> Sync for VerifierSetup<E>
impl<E> Unpin for VerifierSetup<E>where
<E as PairingCurve>::G1: Unpin,
<E as PairingCurve>::G2: Unpin,
<E as PairingCurve>::GT: Unpin,
impl<E> UnwindSafe for VerifierSetup<E>where
<E as PairingCurve>::G1: UnwindSafe,
<E as PairingCurve>::G2: UnwindSafe,
<E as PairingCurve>::GT: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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