pub enum SignerError {
Show 15 variants
MissingKey,
InvalidKey,
UserCanceled,
InputIndexOutOfRange,
MissingNonWitnessUtxo,
InvalidNonWitnessUtxo,
MissingWitnessUtxo,
MissingWitnessScript,
MissingHdKeypath,
NonStandardSighash,
InvalidSighash,
SighashTaproot(TaprootError),
Psbt(SignError),
MiniscriptPsbt(MiniscriptPsbtError),
External(String),
}bitcoin::psbt moduleExpand description
Signing error
Variants§
MissingKey
bitcoin::psbt moduleThe private key is missing for the required public key
InvalidKey
bitcoin::psbt moduleThe private key in use has the right fingerprint but derives differently than expected
UserCanceled
bitcoin::psbt moduleThe user canceled the operation
InputIndexOutOfRange
bitcoin::psbt moduleInput index is out of range
MissingNonWitnessUtxo
bitcoin::psbt moduleThe non_witness_utxo field of the transaction is required to sign this input
InvalidNonWitnessUtxo
bitcoin::psbt moduleThe non_witness_utxo specified is invalid
MissingWitnessUtxo
bitcoin::psbt moduleThe witness_utxo field of the transaction is required to sign this input
MissingWitnessScript
bitcoin::psbt moduleThe witness_script field of the transaction is required to sign this input
MissingHdKeypath
bitcoin::psbt moduleThe fingerprint and derivation path are missing from the psbt input
NonStandardSighash
bitcoin::psbt moduleThe 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.
InvalidSighash
bitcoin::psbt moduleInvalid SIGHASH for the signing context in use
SighashTaproot(TaprootError)
bitcoin::psbt moduleError while computing the hash to sign a Taproot input.
Psbt(SignError)
bitcoin::psbt modulePSBT sign error.
MiniscriptPsbt(MiniscriptPsbtError)
bitcoin::psbt moduleMiniscript PSBT error
External(String)
bitcoin::psbt moduleTo be used only by external libraries implementing InputSigner or
TransactionSigner, so that they can return their own custom errors, without having to
modify SignerError in BDK.