Enum miniscript::psbt::InputError[][src]

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

Fields of InvalidRedeemScript

redeem: Script

Redeem script

p2sh_expected: Script

Expected p2sh Script

InvalidWitnessScript

Witness script does not match the p2wsh hash

Fields of InvalidWitnessScript

witness_script: Script

Witness Script

p2wsh_expected: Script

Expected p2wsh script

InvalidSignature

Invalid sig

Fields of InvalidSignature

pubkey: PublicKey

The bitcoin public key

sig: Vec<u8>

The (incorrect) signature

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

Sighash did not match

Fields of WrongSigHashFlag

required: SigHashType

required sighash type

got: SigHashType

the sighash type we got

pubkey: PublicKey

the corresponding publickey

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

Performs the conversion.

Performs the conversion.

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.