pub enum InputError {
Show 17 variants
CouldNotSatisfyTr,
SecpErr(Error),
KeyErr(FromSliceError),
Interpreter(Error),
InvalidRedeemScript {
redeem: Script,
p2sh_expected: Script,
},
InvalidWitnessScript {
witness_script: Script,
p2wsh_expected: Script,
},
InvalidSignature {
pubkey: PublicKey,
sig: Vec<u8>,
},
MiniscriptError(Error),
MissingRedeemScript,
MissingWitness,
MissingPubkey,
MissingWitnessScript,
MissingUtxo,
NonEmptyWitnessScript,
NonEmptyRedeemScript,
NonStandardSighashType,
WrongSighashFlag {
required: EcdsaSighashType,
got: EcdsaSighashType,
pubkey: PublicKey,
},
}
Expand description
Error type for Pbst Input
Variants§
CouldNotSatisfyTr
Could not satisfy Tr
SecpErr(Error)
Get the secp Errors directly
KeyErr(FromSliceError)
Key errors
Interpreter(Error)
Error doing an interpreter-check on a finalized psbt
InvalidRedeemScript
Redeem script does not match the p2sh hash
InvalidWitnessScript
Witness script does not match the p2wsh hash
InvalidSignature
Invalid sig
MiniscriptError(Error)
Pass through the underlying errors in miniscript
MissingRedeemScript
Missing redeem script for p2sh
MissingWitness
Missing witness
MissingPubkey
used for public key corresponding to pkh/wpkh
MissingWitnessScript
Missing witness script for segwit descriptors
MissingUtxo
Missing both the witness and non-witness utxo
NonEmptyWitnessScript
Non empty Witness script for p2sh
NonEmptyRedeemScript
Non empty Redeem script
NonStandardSighashType
Non standard sighash type
WrongSighashFlag
Sighash did not match
Fields
§
required: EcdsaSighashType
required sighash type
§
got: EcdsaSighashType
the sighash type we got
Trait Implementations§
Source§impl Debug for InputError
impl Debug for InputError
Source§impl Display for InputError
impl Display for InputError
Source§impl Error for InputError
impl Error for InputError
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for InputError
impl !RefUnwindSafe for InputError
impl Send for InputError
impl Sync for InputError
impl Unpin for InputError
impl !UnwindSafe for InputError
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