Enum sapio_bitcoin::util::taproot::TaprootError
source · [−]pub enum TaprootError {
InvalidMerkleBranchSize(usize),
InvalidMerkleTreeDepth(usize),
InvalidTaprootLeafVersion(u8),
InvalidControlBlockSize(usize),
InvalidInternalKey(Error),
InvalidParity(InvalidParityValue),
EmptyTree,
}Expand description
Detailed error type for taproot utilities.
Variants
InvalidMerkleBranchSize(usize)
Proof size must be a multiple of 32.
InvalidMerkleTreeDepth(usize)
Merkle tree depth must not be more than 128.
InvalidTaprootLeafVersion(u8)
The last bit of tapleaf version must be zero.
InvalidControlBlockSize(usize)
Invalid control block size.
InvalidInternalKey(Error)
Invalid taproot internal key.
InvalidParity(InvalidParityValue)
Invalid parity for internal key.
EmptyTree
Empty tap tree.
Trait Implementations
sourceimpl Clone for TaprootError
impl Clone for TaprootError
sourcefn clone(&self) -> TaprootError
fn clone(&self) -> TaprootError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TaprootError
impl Debug for TaprootError
sourceimpl Display for TaprootError
impl Display for TaprootError
sourceimpl Error for TaprootError
Available on crate feature std only.
impl Error for TaprootError
std only.1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Hash for TaprootError
impl Hash for TaprootError
sourceimpl Ord for TaprootError
impl Ord for TaprootError
sourceimpl PartialEq<TaprootError> for TaprootError
impl PartialEq<TaprootError> for TaprootError
sourcefn eq(&self, other: &TaprootError) -> bool
fn eq(&self, other: &TaprootError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TaprootError) -> bool
fn ne(&self, other: &TaprootError) -> bool
This method tests for !=.
sourceimpl PartialOrd<TaprootError> for TaprootError
impl PartialOrd<TaprootError> for TaprootError
sourcefn partial_cmp(&self, other: &TaprootError) -> Option<Ordering>
fn partial_cmp(&self, other: &TaprootError) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for TaprootError
impl Eq for TaprootError
impl StructuralEq for TaprootError
impl StructuralPartialEq for TaprootError
Auto Trait Implementations
impl RefUnwindSafe for TaprootError
impl Send for TaprootError
impl Sync for TaprootError
impl Unpin for TaprootError
impl UnwindSafe for TaprootError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more