pub enum Error {
    VerificationFailed(String),
    Secp256k1(Error),
    NotScriptPathSpend,
    InvalidControlBlock,
    InvalidAmount(OutOfRangeError),
    DeserializationFailed(Error),
    InvalidSighash,
    InputIndexOutOfBounds,
    UnexpectedInput,
}Expand description
Comprehensive error type for verify_and_sign operations
Variants§
VerificationFailed(String)
Verification failed
Secp256k1(Error)
Wrapped secp256k1 errors from cryptographic operations
NotScriptPathSpend
Input is not a script path spend (missing taproot control block)
InvalidControlBlock
Invalid control block format or size
InvalidAmount(OutOfRangeError)
Invalid amount
DeserializationFailed(Error)
Deserialization failed
InvalidSighash
Unable to calculate sighash
InputIndexOutOfBounds
Input index out of bounds
UnexpectedInput
Unexpected input scriptPubKey
Trait Implementations§
Source§impl From<OutOfRangeError> for Error
 
impl From<OutOfRangeError> for Error
Source§fn from(error: OutOfRangeError) -> Self
 
fn from(error: OutOfRangeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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