#[non_exhaustive]pub enum SignerChecksError {
NonWitnessSig,
NonWitnessUtxoTxidMismatch,
WitnessAndNonWitnessUtxo,
RedeemScriptMismatch,
MissingTxOut,
WitnessScriptMismatchWsh,
WitnessScriptMismatchShWsh,
}Expand description
Errors encountered while doing the signer checks.
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.
NonWitnessSig
Witness input will produce a non-witness signature.
NonWitnessUtxoTxidMismatch
Non-witness input has a mismatch between the txid and prevout txid.
WitnessAndNonWitnessUtxo
Input has both witness and non-witness utxos.
RedeemScriptMismatch
Redeem script hash did not match the hash in the script_pubkey.
MissingTxOut
Missing witness_utxo.
WitnessScriptMismatchWsh
Native segwit p2wsh script_pubkey did not match witness script hash.
WitnessScriptMismatchShWsh
Nested segwit p2wsh script_pubkey did not match redeem script hash.
Trait Implementations§
Source§impl Clone for SignerChecksError
impl Clone for SignerChecksError
Source§fn clone(&self) -> SignerChecksError
fn clone(&self) -> SignerChecksError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignerChecksError
impl Debug for SignerChecksError
Source§impl Display for SignerChecksError
impl Display for SignerChecksError
Source§impl Error for SignerChecksError
Available on crate feature std only.
impl Error for SignerChecksError
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for SignerChecksError
impl PartialEq for SignerChecksError
impl Eq for SignerChecksError
impl StructuralPartialEq for SignerChecksError
Auto Trait Implementations§
impl Freeze for SignerChecksError
impl RefUnwindSafe for SignerChecksError
impl Send for SignerChecksError
impl Sync for SignerChecksError
impl Unpin for SignerChecksError
impl UnsafeUnpin for SignerChecksError
impl UnwindSafe for SignerChecksError
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