#[repr(u32)]pub enum Groth16Error {
InvalidProof = 0,
MalformedPublicInputs = 1,
MalformedProof = 2,
NotInitialized = 3,
}Expand description
Errors that can occur during Groth16 proof verification.
Variants§
InvalidProof = 0
The pairing product did not equal identity.
MalformedPublicInputs = 1
The public inputs length does not match the verification key.
MalformedProof = 2
The proof bytes are malformed.
NotInitialized = 3
The contract was not initialized
Implementations§
Trait Implementations§
Source§impl Clone for Groth16Error
impl Clone for Groth16Error
Source§fn clone(&self) -> Groth16Error
fn clone(&self) -> Groth16Error
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 Debug for Groth16Error
impl Debug for Groth16Error
Source§impl From<&Groth16Error> for Error
impl From<&Groth16Error> for Error
Source§fn from(val: &Groth16Error) -> Error
fn from(val: &Groth16Error) -> Error
Converts to this type from the input type.
Source§impl From<&Groth16Error> for InvokeError
impl From<&Groth16Error> for InvokeError
Source§fn from(val: &Groth16Error) -> InvokeError
fn from(val: &Groth16Error) -> InvokeError
Converts to this type from the input type.
Source§impl From<Groth16Error> for Error
impl From<Groth16Error> for Error
Source§fn from(val: Groth16Error) -> Error
fn from(val: Groth16Error) -> Error
Converts to this type from the input type.
Source§impl From<Groth16Error> for InvokeError
impl From<Groth16Error> for InvokeError
Source§fn from(val: Groth16Error) -> InvokeError
fn from(val: Groth16Error) -> InvokeError
Converts to this type from the input type.
Source§impl Ord for Groth16Error
impl Ord for Groth16Error
Source§fn cmp(&self, other: &Groth16Error) -> Ordering
fn cmp(&self, other: &Groth16Error) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Groth16Error
impl PartialEq for Groth16Error
Source§impl PartialOrd for Groth16Error
impl PartialOrd for Groth16Error
Source§impl TryFrom<&Error> for Groth16Error
impl TryFrom<&Error> for Groth16Error
Source§impl TryFrom<&InvokeError> for Groth16Error
impl TryFrom<&InvokeError> for Groth16Error
Source§impl TryFrom<Error> for Groth16Error
impl TryFrom<Error> for Groth16Error
Source§impl TryFrom<InvokeError> for Groth16Error
impl TryFrom<InvokeError> for Groth16Error
Source§impl TryFromVal<Env, &Groth16Error> for Val
impl TryFromVal<Env, &Groth16Error> for Val
type Error = ConversionError
fn try_from_val(env: &Env, val: &&Groth16Error) -> Result<Self, ConversionError>
Source§impl TryFromVal<Env, Groth16Error> for Val
impl TryFromVal<Env, Groth16Error> for Val
type Error = ConversionError
fn try_from_val(env: &Env, val: &Groth16Error) -> Result<Self, ConversionError>
Source§impl TryFromVal<Env, Val> for Groth16Error
impl TryFromVal<Env, Val> for Groth16Error
impl Copy for Groth16Error
impl Eq for Groth16Error
impl StructuralPartialEq for Groth16Error
Auto Trait Implementations§
impl Freeze for Groth16Error
impl RefUnwindSafe for Groth16Error
impl Send for Groth16Error
impl Sync for Groth16Error
impl Unpin for Groth16Error
impl UnwindSafe for Groth16Error
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T, U, V, E, C> Compare<(T, U, V)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,
impl<T, U, V, E, C> Compare<(T, U, V)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,
§impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W>,
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W>,
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W> + Compare<X>,
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W> + Compare<X>,
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
§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
Compare self to
key and return true if they are equal.§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<T> FromXdr for Twhere
T: TryFromVal<Env, Val>,
impl<T> FromXdr for Twhere
T: TryFromVal<Env, Val>,
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