Enum psbt::sign::SignInputError[][src]

pub enum SignInputError {
Show 13 variants PubkeyMismatch { provided: PublicKey, derived: PublicKey, }, Match(InputMatchError), FutureWitness(WitnessVersion), NonTaprootV1, NoPrevoutScript, NoRedeemScript, InvalidRedeemScript, LegacySpentTransactionMissed, SecpPrivkeyDerivation, ScriptPubkeyMismatch, P2cTweak, TweakFailure(PublicKey), Miniscript(Error),
}
Expand description

Errors happening during PSBT input signing process

Variants

PubkeyMismatch

Fields

provided: PublicKey
derived: PublicKey

public key {provided} provided with PSBT input does not match public key {derived} derived from the supplied private key using derivation path from that input

Match(InputMatchError)

Tuple Fields

spent transaction does not match input prevout reference

FutureWitness(WitnessVersion)

Tuple Fields

unable to sign future witness version {0} in output

NonTaprootV1

unable to sign non-taproot witness version v1 output

NoPrevoutScript

no redeem or witness script specified for input

NoRedeemScript

input spending nested witness output does not contain redeem script source

InvalidRedeemScript

redeem script is invalid in context of nested (legacy) P2W*-in-P2SH spending

LegacySpentTransactionMissed

transaction input is a non-witness input, but full spent transaction is not provided in the non_witness_utxo PSBT field.

SecpPrivkeyDerivation

unable to derive private key with a given derivation path: elliptic curve prime field order (p) overflow or derivation resulting at the point-at-infinity.

ScriptPubkeyMismatch

scriptPubkey from previous output does not match witness or redeem script from the same input supplied in PSBT

P2cTweak

error applying pay-to-contract public key tweak

TweakFailure(PublicKey)

Tuple Fields

0: PublicKey

rrror applying tweak matching public key {0}: the tweak value is either a modulo-negation of the original private key, or it leads to elliptic curve prime field order (p) overflow

Miniscript(Error)

Tuple Fields

0: Error

miniscript parse error

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.