Enum miniscript::psbt::InputError
source · [−]pub enum InputError {
Show 15 variants
SecpErr(Error),
KeyErr(Error),
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,
WrongSigHashFlag {
required: SigHashType,
got: SigHashType,
pubkey: PublicKey,
},
}
Expand description
Error type for Pbst Input
Variants
SecpErr(Error)
Get the secp Errors directly
KeyErr(Error)
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
WrongSigHashFlag
Fields
required: SigHashType
required sighash type
got: SigHashType
the sighash type we got
pubkey: PublicKey
the corresponding publickey
Sighash did not match
Trait Implementations
sourceimpl Debug for InputError
impl Debug for InputError
Auto Trait Implementations
impl RefUnwindSafe for InputError
impl Send for InputError
impl Sync for InputError
impl Unpin for InputError
impl UnwindSafe for InputError
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