pub enum TapretKeyError {
AlternativeCommitment(TapretNodePartner),
IncorrectOrdering(TapretNodePartner, TapLeafHash),
}
Expand description
Errors during tapret commitment embedding into x-only public key.
Variants§
AlternativeCommitment(TapretNodePartner)
tapret node partner {0} contains alternative commitment
IncorrectOrdering(TapretNodePartner, TapLeafHash)
tapret node partner {0} has an invalid order with the commitment node {1}
Trait Implementations§
Source§impl Clone for TapretKeyError
impl Clone for TapretKeyError
Source§fn clone(&self) -> TapretKeyError
fn clone(&self) -> TapretKeyError
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 TapretKeyError
impl Debug for TapretKeyError
Source§impl<'de> Deserialize<'de> for TapretKeyError
impl<'de> Deserialize<'de> for TapretKeyError
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 Display for TapretKeyError
impl Display for TapretKeyError
Source§impl Error for TapretKeyError
impl Error for TapretKeyError
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 From<TapretKeyError> for String
impl From<TapretKeyError> for String
Source§fn from(err: TapretKeyError) -> Self
fn from(err: TapretKeyError) -> Self
Converts to this type from the input type.
Source§impl From<TapretKeyError> for TapretError
impl From<TapretKeyError> for TapretError
Source§fn from(v: TapretKeyError) -> Self
fn from(v: TapretKeyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TapretKeyError
impl PartialEq for TapretKeyError
Source§impl Serialize for TapretKeyError
impl Serialize for TapretKeyError
impl Eq for TapretKeyError
impl StructuralPartialEq for TapretKeyError
Auto Trait Implementations§
impl Freeze for TapretKeyError
impl RefUnwindSafe for TapretKeyError
impl Send for TapretKeyError
impl Sync for TapretKeyError
impl Unpin for TapretKeyError
impl UnwindSafe for TapretKeyError
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.