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§

source§

impl Debug for InputError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for InputError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.