Struct snarkvm_synthesizer::prelude::Proof
source · pub struct Proof<N>where
N: Network,{ /* private fields */ }
Methods from Deref<Target = Proof<<N as Environment>::PairingCurve>>§
pub fn batch_sizes(&self) -> &[usize]
sourcepub fn check_batch_sizes(&self) -> Result<(), SNARKError>
pub fn check_batch_sizes(&self) -> Result<(), SNARKError>
Check that the number of messages is consistent with our batch size
Trait Implementations§
source§impl<'de, N> Deserialize<'de> for Proof<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Proof<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Proof<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Proof<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the proof from a string or bytes.
source§impl<N> PartialEq for Proof<N>where
N: PartialEq + Network,
<N as Environment>::PairingCurve: PartialEq,
impl<N> PartialEq for Proof<N>where N: PartialEq + Network, <N as Environment>::PairingCurve: PartialEq,
source§impl<N> Serialize for Proof<N>where
N: Network,
impl<N> Serialize for Proof<N>where N: Network,
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serializes the proof into string or bytes.
impl<N> Eq for Proof<N>where N: Eq + Network, <N as Environment>::PairingCurve: Eq,
impl<N> StructuralEq for Proof<N>where N: Network,
impl<N> StructuralPartialEq for Proof<N>where N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for Proof<N>where <N as Environment>::Field: RefUnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
impl<N> Send for Proof<N>
impl<N> Sync for Proof<N>
impl<N> Unpin for Proof<N>where <N as Environment>::Field: Unpin, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin,
impl<N> UnwindSafe for Proof<N>where <N as Environment>::Field: UnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: 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<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere T: DeserializeOwned,
fn take_from_value<D>( value: &mut Value, field: &str ) -> Result<T, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.