Enum sapio_miniscript::psbt::InputError
source · [−]pub enum InputError {
Show 17 variants
SecpErr(Error),
KeyErr(Error),
CouldNotSatisfyTr,
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(NonStandardSigHashType),
WrongSigHashFlag {
required: EcdsaSigHashType,
got: EcdsaSigHashType,
pubkey: PublicKey,
},
}
Expand description
Error type for Pbst Input
Variants
SecpErr(Error)
Get the secp Errors directly
KeyErr(Error)
Key errors
CouldNotSatisfyTr
Could not satisfy taproot descriptor This error is returned when both script path and key paths could not be satisfied. We cannot return a detailed error because we try all miniscripts in script spend path, we cannot know which miniscript failed.
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(NonStandardSigHashType)
Non Standard sighash type
WrongSigHashFlag
Fields
required: EcdsaSigHashType
required sighash type
got: EcdsaSigHashType
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