pub enum SignerError {
MissingKey,
InvalidKey,
UserCanceled,
InputIndexOutOfRange,
MissingNonWitnessUtxo,
InvalidNonWitnessUtxo,
MissingWitnessUtxo,
MissingWitnessScript,
MissingHdKeypath,
NonStandardSighash,
}
Expand description
Signing error
Variants
MissingKey
The private key is missing for the required public key
InvalidKey
The private key in use has the right fingerprint but derives differently than expected
UserCanceled
The user canceled the operation
InputIndexOutOfRange
Input index is out of range
MissingNonWitnessUtxo
The non_witness_utxo
field of the transaction is required to sign this input
InvalidNonWitnessUtxo
The non_witness_utxo
specified is invalid
MissingWitnessUtxo
The witness_utxo
field of the transaction is required to sign this input
MissingWitnessScript
The witness_script
field of the transaction is required to sign this input
MissingHdKeypath
The fingerprint and derivation path are missing from the psbt input
NonStandardSighash
The psbt contains a non-SIGHASH_ALL
sighash in one of its input and the user hasn’t
explicitly allowed them
To enable signing transactions with non-standard sighashes set
SignOptions::allow_all_sighashes
to true
.
Trait Implementations
sourceimpl Clone for SignerError
impl Clone for SignerError
sourcefn clone(&self) -> SignerError
fn clone(&self) -> SignerError
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 SignerError
impl Debug for SignerError
sourceimpl Display for SignerError
impl Display for SignerError
sourceimpl Error for SignerError
impl Error for SignerError
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 From<SignerError> for Error
impl From<SignerError> for Error
sourcefn from(err: SignerError) -> Self
fn from(err: SignerError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SignerError> for SignerError
impl PartialEq<SignerError> for SignerError
impl Eq for SignerError
impl StructuralEq for SignerError
impl StructuralPartialEq for SignerError
Auto Trait Implementations
impl RefUnwindSafe for SignerError
impl Send for SignerError
impl Sync for SignerError
impl Unpin for SignerError
impl UnwindSafe for SignerError
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
impl<T> Pointable for T
impl<T> Pointable for T
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