pub enum EmbedVerifyError<E: Error> {
CommitmentMismatch,
InvalidMessage(E),
InvalidProof,
ProofMismatch,
}
Expand description
Error during commitment verification
Variants§
CommitmentMismatch
commitment doesn’t match the message.
InvalidMessage(E)
the message is invalid since a valid commitment to it can’t be created.
Details: {0}
InvalidProof
the proof is invalid and the commitment can’t be verified since the original container can’t be restored from it.
ProofMismatch
the proof does not match to the proof generated for the same message during the verification.
Trait Implementations§
Source§impl<E: Clone + Error> Clone for EmbedVerifyError<E>
impl<E: Clone + Error> Clone for EmbedVerifyError<E>
Source§fn clone(&self) -> EmbedVerifyError<E>
fn clone(&self) -> EmbedVerifyError<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<E: Error> Display for EmbedVerifyError<E>
impl<E: Error> Display for EmbedVerifyError<E>
Source§impl<E: Error> Error for EmbedVerifyError<E>
impl<E: Error> Error for EmbedVerifyError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E: Error> From<E> for EmbedVerifyError<E>
impl<E: Error> From<E> for EmbedVerifyError<E>
Source§impl<E: Error> From<EmbedVerifyError<E>> for String
impl<E: Error> From<EmbedVerifyError<E>> for String
Source§fn from(err: EmbedVerifyError<E>) -> Self
fn from(err: EmbedVerifyError<E>) -> Self
Converts to this type from the input type.
impl<E: Copy + Error> Copy for EmbedVerifyError<E>
impl<E: Eq + Error> Eq for EmbedVerifyError<E>
impl<E: Error> StructuralPartialEq for EmbedVerifyError<E>
Auto Trait Implementations§
impl<E> Freeze for EmbedVerifyError<E>where
E: Freeze,
impl<E> RefUnwindSafe for EmbedVerifyError<E>where
E: RefUnwindSafe,
impl<E> Send for EmbedVerifyError<E>where
E: Send,
impl<E> Sync for EmbedVerifyError<E>where
E: Sync,
impl<E> Unpin for EmbedVerifyError<E>where
E: Unpin,
impl<E> UnwindSafe for EmbedVerifyError<E>where
E: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.