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

Fields

redeem: Script

Redeem script

p2sh_expected: Script

Expected p2sh Script

Redeem script does not match the p2sh hash

InvalidWitnessScript

Fields

witness_script: Script

Witness Script

p2wsh_expected: Script

Expected p2wsh script

Witness script does not match the p2wsh hash

InvalidSignature

Fields

pubkey: PublicKey

The bitcoin public key

sig: Vec<u8>

The (incorrect) signature

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.