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§
§impl Error for SignError
impl Error for SignError
§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()
§impl Ord for SignError
impl Ord for SignError
§impl PartialOrd<SignError> for SignError
impl PartialOrd<SignError> for SignError
§fn partial_cmp(&self, other: &SignError) -> Option<Ordering>
fn partial_cmp(&self, other: &SignError) -> Option<Ordering>
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
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.