pub enum StatementProof<E: PairingEngine, G: AffineCurve> {
PoKBBSSignatureG1(PoKOfSignatureG1Proof<E>),
AccumulatorMembership(MembershipProof<E>),
AccumulatorNonMembership(NonMembershipProof<E>),
PedersenCommitment(PedersenCommitmentProof<G>),
Saver(SaverProof<E>),
BoundCheckLegoGroth16(BoundCheckLegoGroth16Proof<E>),
R1CSLegoGroth16(R1CSLegoGroth16Proof<E>),
}Expand description
Proof corresponding to one Statement
Variants
PoKBBSSignatureG1(PoKOfSignatureG1Proof<E>)
AccumulatorMembership(MembershipProof<E>)
AccumulatorNonMembership(NonMembershipProof<E>)
PedersenCommitment(PedersenCommitmentProof<G>)
Saver(SaverProof<E>)
BoundCheckLegoGroth16(BoundCheckLegoGroth16Proof<E>)
R1CSLegoGroth16(R1CSLegoGroth16Proof<E>)
Trait Implementations
sourceimpl<E: PairingEngine, G: AffineCurve> CanonicalDeserialize for StatementProof<E, G>
impl<E: PairingEngine, G: AffineCurve> CanonicalDeserialize for StatementProof<E, G>
sourcefn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
Reads
Self from reader.sourcefn deserialize_uncompressed<R: Read>(
reader: R
) -> Result<Self, SerializationError>
fn deserialize_uncompressed<R: Read>(
reader: R
) -> Result<Self, SerializationError>
Reads
Self from reader without compression.sourcefn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
fn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
Reads
self from reader without compression, and without performing
validity checks. Should be used only when the input is trusted. Read moresourceimpl<E: PairingEngine, G: AffineCurve> CanonicalSerialize for StatementProof<E, G>
impl<E: PairingEngine, G: AffineCurve> CanonicalSerialize for StatementProof<E, G>
sourcefn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
Serializes
self into writer.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read morefn serialized_size(&self) -> usize
sourcefn serialize_uncompressed<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
fn serialize_uncompressed<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
Serializes
self into writer without compression.sourcefn serialize_unchecked<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
fn serialize_unchecked<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
Serializes
self into writer without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read morefn uncompressed_size(&self) -> usize
sourceimpl<E: Clone + PairingEngine, G: Clone + AffineCurve> Clone for StatementProof<E, G>
impl<E: Clone + PairingEngine, G: Clone + AffineCurve> Clone for StatementProof<E, G>
sourcefn clone(&self) -> StatementProof<E, G>
fn clone(&self) -> StatementProof<E, G>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<E: Debug + PairingEngine, G: Debug + AffineCurve> Debug for StatementProof<E, G>
impl<E: Debug + PairingEngine, G: Debug + AffineCurve> Debug for StatementProof<E, G>
sourceimpl<'de, E: PairingEngine, G: AffineCurve> Deserialize<'de> for StatementProof<E, G>
impl<'de, E: PairingEngine, G: AffineCurve> Deserialize<'de> for StatementProof<E, G>
sourcefn 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
sourceimpl<E: PartialEq + PairingEngine, G: PartialEq + AffineCurve> PartialEq<StatementProof<E, G>> for StatementProof<E, G>
impl<E: PartialEq + PairingEngine, G: PartialEq + AffineCurve> PartialEq<StatementProof<E, G>> for StatementProof<E, G>
sourcefn eq(&self, other: &StatementProof<E, G>) -> bool
fn eq(&self, other: &StatementProof<E, G>) -> bool
sourceimpl<E: PairingEngine, G: AffineCurve> Serialize for StatementProof<E, G>
impl<E: PairingEngine, G: AffineCurve> Serialize for StatementProof<E, G>
impl<E: PairingEngine, G: AffineCurve> StructuralPartialEq for StatementProof<E, G>
Auto Trait Implementations
impl<E, G> RefUnwindSafe for StatementProof<E, G>where
G: RefUnwindSafe,
<E as PairingEngine>::Fqk: RefUnwindSafe,
<E as PairingEngine>::Fr: RefUnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G2Affine: RefUnwindSafe,
<G as AffineCurve>::ScalarField: RefUnwindSafe,
impl<E, G> Send for StatementProof<E, G>
impl<E, G> Sync for StatementProof<E, G>
impl<E, G> Unpin for StatementProof<E, G>where
G: Unpin,
<E as PairingEngine>::Fqk: Unpin,
<E as PairingEngine>::Fr: Unpin,
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G2Affine: Unpin,
<G as AffineCurve>::ScalarField: Unpin,
impl<E, G> UnwindSafe for StatementProof<E, G>where
G: UnwindSafe,
<E as PairingEngine>::Fqk: UnwindSafe,
<E as PairingEngine>::Fr: UnwindSafe,
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G2Affine: UnwindSafe,
<G as AffineCurve>::ScalarField: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where
H: Digest,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref