Enum miniscript::psbt::InputError
source · pub enum InputError {
Show 17 variants
SecpErr(Error),
KeyErr(FromSliceError),
CouldNotSatisfyTr,
Interpreter(Error),
InvalidRedeemScript {
redeem: ScriptBuf,
p2sh_expected: ScriptBuf,
},
InvalidWitnessScript {
witness_script: ScriptBuf,
p2wsh_expected: ScriptBuf,
},
InvalidSignature {
pubkey: PublicKey,
sig: Vec<u8>,
},
MiniscriptError(Error),
MissingRedeemScript,
MissingWitness,
MissingPubkey,
MissingWitnessScript,
MissingUtxo,
NonEmptyWitnessScript,
NonEmptyRedeemScript,
NonStandardSighashType(NonStandardSighashTypeError),
WrongSighashFlag {
required: EcdsaSighashType,
got: EcdsaSighashType,
pubkey: PublicKey,
},
}
Expand description
Error type for Pbst Input
Variants§
SecpErr(Error)
Get the secp Errors directly
KeyErr(FromSliceError)
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(NonStandardSighashTypeError)
Non Standard sighash type
WrongSighashFlag
Fields
required: EcdsaSighashType
required sighash type
got: EcdsaSighashType
the sighash type we got
Sighash did not match