Enum sapio_miniscript::psbt::InputError[][src]

pub enum InputError {
    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,
    },
}

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

impl Debug for InputError[src]

impl Display for InputError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.