pub enum TxoSealError {
NoOutput,
InvalidProofType,
NoTapretProof,
Tapret(ConvolveVerifyError),
Opret(EmbedVerifyError<OpretError>),
}Expand description
Errors verifying Txo-based single use seal closing with a provided witness, under TxoSeal
implementation of [SingleUseSeals] protocol.
Variants§
NoOutput
witness transaction contains no taproot or OP_RETURN output.
InvalidProofType
the first witness transaction DBC-compatible output does not match the provided proof type.
NoTapretProof
the first witness transaction DBC-compatible output is taproot, but no tapret proof is provided.
Tapret(ConvolveVerifyError)
invalid tapret commitment.
Opret(EmbedVerifyError<OpretError>)
invalid opret commitment.
Trait Implementations§
Source§impl Clone for TxoSealError
impl Clone for TxoSealError
Source§fn clone(&self) -> TxoSealError
fn clone(&self) -> TxoSealError
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 TxoSealError
impl Debug for TxoSealError
Source§impl Display for TxoSealError
impl Display for TxoSealError
Source§impl Error for TxoSealError
impl Error for TxoSealError
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<ConvolveVerifyError> for TxoSealError
impl From<ConvolveVerifyError> for TxoSealError
Source§fn from(v: ConvolveVerifyError) -> Self
fn from(v: ConvolveVerifyError) -> Self
Converts to this type from the input type.
Source§impl From<EmbedVerifyError<OpretError>> for TxoSealError
impl From<EmbedVerifyError<OpretError>> for TxoSealError
Source§fn from(v: EmbedVerifyError<OpretError>) -> Self
fn from(v: EmbedVerifyError<OpretError>) -> Self
Converts to this type from the input type.
Source§impl From<TxoSealError> for String
impl From<TxoSealError> for String
Source§fn from(err: TxoSealError) -> Self
fn from(err: TxoSealError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TxoSealError
impl PartialEq for TxoSealError
impl Eq for TxoSealError
impl StructuralPartialEq for TxoSealError
Auto Trait Implementations§
impl Freeze for TxoSealError
impl RefUnwindSafe for TxoSealError
impl Send for TxoSealError
impl Sync for TxoSealError
impl Unpin for TxoSealError
impl UnwindSafe for TxoSealError
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.