Enum psbt::construct::Error[][src]

pub enum Error {
    ResolvingTx(TxResolverError),
    Derive(DeriveError),
    OutputUnknown(Txidu32),
    ScriptPubkeyMismatch(Txidu32ScriptScript),
    Miniscript(Error),
    Inflation {
        input: u64,
        output: u64,
    },
}

Variants

ResolvingTx(TxResolverError)

Tuple Fields

unable to construct PSBT due to one of transaction inputs is not known

Derive(DeriveError)

Tuple Fields

unable to construct PSBT due to failing key derivetion derivation

OutputUnknown(Txidu32)

Tuple Fields

0: Txid
1: u32

unable to construct PSBT due to spent transaction {0} not having referenced output #{1}

ScriptPubkeyMismatch(Txidu32ScriptScript)

Tuple Fields

0: Txid
1: u32
2: Script
3: Script

derived scriptPubkey {3} does not match transaction scriptPubkey {2} for {0}:{1}

Miniscript(Error)

Tuple Fields

0: Error

one of PSBT outputs has invalid script data

Inflation

Fields

input: u64

Amount spent: input amounts

output: u64

Amount sent: sum of output value + transaction fee

PSBT can’t be constructed according to the consensus rules since it spends more ({output} sats) than the sum of its input amounts ({input} sats)

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.