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
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)
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
Performs the conversion.
Performs the conversion.