pub struct BatchProof<E: Pairing> { /* private fields */ }
Expand description
An aggregated SNARK proof that batchly proving multiple instances.
Implementations§
Source§impl<E: Pairing> BatchProof<E>
impl<E: Pairing> BatchProof<E>
Source§impl<E: Pairing> BatchProof<E>
impl<E: Pairing> BatchProof<E>
Sourcepub fn create_variables<F, P>(
&self,
circuit: &mut PlonkCircuit<F>,
m: usize,
two_power_m: Option<F>,
) -> Result<BatchProofVar<F>, PlonkError>where
E: Pairing<BaseField = F, G1Affine = Affine<P>>,
F: RescueParameter + SWToTEConParam,
P: SWCurveConfig<BaseField = F>,
pub fn create_variables<F, P>(
&self,
circuit: &mut PlonkCircuit<F>,
m: usize,
two_power_m: Option<F>,
) -> Result<BatchProofVar<F>, PlonkError>where
E: Pairing<BaseField = F, G1Affine = Affine<P>>,
F: RescueParameter + SWToTEConParam,
P: SWCurveConfig<BaseField = F>,
Create a BatchProofVar
variable from a BatchProof
.
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for BatchProof<E>
impl<E: Pairing> CanonicalDeserialize for BatchProof<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 BatchProof<E>
impl<E: Pairing> CanonicalSerialize for BatchProof<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 BatchProof<E>where
E::ScalarField: Clone,
impl<E: Clone + Pairing> Clone for BatchProof<E>where
E::ScalarField: Clone,
Source§fn clone(&self) -> BatchProof<E>
fn clone(&self) -> BatchProof<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<'de, E: Pairing> Deserialize<'de> for BatchProof<E>
impl<'de, E: Pairing> Deserialize<'de> for BatchProof<E>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: Pairing> Display for BatchProof<E>
impl<E: Pairing> Display for BatchProof<E>
Source§impl<E: Pairing> From<&BatchProof<E>> for TaggedBase64
impl<E: Pairing> From<&BatchProof<E>> for TaggedBase64
Source§fn from(x: &BatchProof<E>) -> Self
fn from(x: &BatchProof<E>) -> Self
Converts to this type from the input type.
Source§impl<E: Pairing> From<BatchProof<E>> for TaggedBase64
impl<E: Pairing> From<BatchProof<E>> for TaggedBase64
Source§fn from(x: BatchProof<E>) -> Self
fn from(x: BatchProof<E>) -> Self
Converts to this type from the input type.
Source§impl<E: Pairing> From<Proof<E>> for BatchProof<E>
impl<E: Pairing> From<Proof<E>> for BatchProof<E>
Source§impl<E: Pairing> FromStr for BatchProof<E>
impl<E: Pairing> FromStr for BatchProof<E>
Source§impl<E> Hash for BatchProof<E>where
E: Pairing,
impl<E> Hash for BatchProof<E>where
E: Pairing,
Source§impl<E> PartialEq for BatchProof<E>where
E: PartialEq + Pairing,
impl<E> PartialEq for BatchProof<E>where
E: PartialEq + Pairing,
Source§impl<E: Pairing> Serialize for BatchProof<E>
impl<E: Pairing> Serialize for BatchProof<E>
Source§impl<E: Pairing> TryFrom<&TaggedBase64> for BatchProof<E>
impl<E: Pairing> TryFrom<&TaggedBase64> for BatchProof<E>
Source§impl<E: Pairing> TryFrom<TaggedBase64> for BatchProof<E>
impl<E: Pairing> TryFrom<TaggedBase64> for BatchProof<E>
Source§impl<E: Pairing> Valid for BatchProof<E>
impl<E: Pairing> Valid for BatchProof<E>
impl<E: Eq + Pairing> Eq for BatchProof<E>where
E::ScalarField: Eq,
Auto Trait Implementations§
impl<E> Freeze for BatchProof<E>where
<E as Pairing>::G1Affine: Freeze,
impl<E> RefUnwindSafe for BatchProof<E>where
<E as Pairing>::G1Affine: RefUnwindSafe,
<E as Pairing>::ScalarField: RefUnwindSafe,
impl<E> Send for BatchProof<E>
impl<E> Sync for BatchProof<E>
impl<E> Unpin for BatchProof<E>
impl<E> UnwindSafe for BatchProof<E>where
<E as Pairing>::G1Affine: UnwindSafe,
<E as Pairing>::ScalarField: 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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
§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