Enum dbc::tapret::TapretKeyError
source · 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 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 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)>
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<TapretKeyError> for TapretKeyError
impl PartialEq<TapretKeyError> for TapretKeyError
source§fn eq(&self, other: &TapretKeyError) -> bool
fn eq(&self, other: &TapretKeyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TapretKeyError
impl Serialize for TapretKeyError
impl Eq for TapretKeyError
impl StructuralEq for TapretKeyError
impl StructuralPartialEq for TapretKeyError
Auto Trait Implementations§
impl RefUnwindSafe for TapretKeyError
impl Send for TapretKeyError
impl Sync for TapretKeyError
impl Unpin for TapretKeyError
impl UnwindSafe for TapretKeyError
Blanket Implementations§
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.