pub enum SignError {
}
Expand description
Errors encountered while calculating the sighash message.
Variants§
IndexOutOfBounds(usize, usize)
Input index out of bounds (actual index, maximum index allowed).
InvalidSighashType
Invalid Sighash type.
MissingInputUtxo
Missing input utxo.
MissingRedeemScript
Missing Redeem script.
MissingSpendUtxo
Missing spending utxo.
MissingWitnessScript
Missing witness script.
MismatchedAlgoKey
Signing algorithm and key type does not match.
NotEcdsa
Attempted to ECDSA sign an non-ECDSA input.
NotWpkh
The scriptPubkey
is not a P2WPKH script.
SighashComputation(Error)
Sighash computation error.
UnknownOutputType
Unable to determine the output type.
KeyNotFound
Unable to find key.
WrongSigningAlgorithm
Attempt to sign an input with the wrong signing algorithm.
Unsupported
Signing request currently unsupported.
Trait Implementations§
source§impl Error for SignError
Available on crate feature std
only.
impl Error for SignError
Available on crate feature
std
only.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 Ord for SignError
impl Ord for SignError
source§impl PartialEq<SignError> for SignError
impl PartialEq<SignError> for SignError
source§impl PartialOrd<SignError> for SignError
impl PartialOrd<SignError> for SignError
1.0.0 · source§fn 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 moreimpl Eq for SignError
impl StructuralEq for SignError
impl StructuralPartialEq for SignError
Auto Trait Implementations§
impl RefUnwindSafe for SignError
impl Send for SignError
impl Sync for SignError
impl Unpin for SignError
impl UnwindSafe for SignError
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