#[non_exhaustive]pub enum SignError {
Show 16 variants
IndexOutOfBounds(IndexOutOfBoundsError),
InvalidSighashType,
MissingInputUtxo,
MissingRedeemScript,
MissingSpendUtxo,
MissingWitnessScript,
MismatchedAlgoKey,
NotEcdsa,
NotWpkh,
SegwitV0Sighash(InputsIndexError),
P2wpkhSighash(P2wpkhError),
TaprootError(TaprootError),
UnknownOutputType,
KeyNotFound,
WrongSigningAlgorithm,
Unsupported,
}
Expand description
Errors encountered while calculating the sighash message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IndexOutOfBounds(IndexOutOfBoundsError)
Input index out of bounds.
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.
SegwitV0Sighash(InputsIndexError)
Sighash computation error (segwit v0 input).
P2wpkhSighash(P2wpkhError)
Sighash computation error (p2wpkh input).
TaprootError(TaprootError)
Sighash computation error (taproot input).
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 From<IndexOutOfBoundsError> for SignError
impl From<IndexOutOfBoundsError> for SignError
§fn from(e: IndexOutOfBoundsError) -> SignError
fn from(e: IndexOutOfBoundsError) -> SignError
Converts to this type from the input type.
§impl From<Infallible> for SignError
impl From<Infallible> for SignError
§fn from(never: Infallible) -> SignError
fn from(never: Infallible) -> SignError
Converts to this type from the input type.
§impl From<P2wpkhError> for SignError
impl From<P2wpkhError> for SignError
§fn from(e: P2wpkhError) -> SignError
fn from(e: P2wpkhError) -> SignError
Converts to this type from the input type.
§impl From<TaprootError> for SignError
impl From<TaprootError> for SignError
§fn from(e: TaprootError) -> SignError
fn from(e: TaprootError) -> SignError
Converts to this type from the input type.
impl Eq for SignError
impl StructuralPartialEq for SignError
Auto Trait Implementations§
impl Freeze for SignError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more