Enum miniscript::psbt::SighashError
source · pub enum SighashError {
IndexOutOfBounds(usize, usize),
MissingInputUtxo,
MissingSpendUtxos,
InvalidSighashType,
SighashTaproot(TaprootError),
SighashP2wpkh(P2wpkhError),
TransactionInputsIndex(InputsIndexError),
MissingWitnessScript,
MissingRedeemScript,
}
Expand description
Return error type for PsbtExt::sighash_msg
Variants§
IndexOutOfBounds(usize, usize)
Index out of bounds
MissingInputUtxo
Missing input utxo
MissingSpendUtxos
Missing Prevouts
InvalidSighashType
Invalid Sighash type
SighashTaproot(TaprootError)
Computation error for taproot sighash.
SighashP2wpkh(P2wpkhError)
Computation error for P2WPKH sighash.
TransactionInputsIndex(InputsIndexError)
Computation error for P2WSH sighash.
MissingWitnessScript
Missing Witness script
MissingRedeemScript
Missing Redeem script,
Trait Implementations§
source§impl Clone for SighashError
impl Clone for SighashError
source§fn clone(&self) -> SighashError
fn clone(&self) -> SighashError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SighashError
impl Debug for SighashError
source§impl Display for SighashError
impl Display for SighashError
source§impl Error for SighashError
impl Error for SighashError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<InputsIndexError> for SighashError
impl From<InputsIndexError> for SighashError
source§fn from(e: InputsIndexError) -> Self
fn from(e: InputsIndexError) -> Self
Converts to this type from the input type.
source§impl From<P2wpkhError> for SighashError
impl From<P2wpkhError> for SighashError
source§fn from(e: P2wpkhError) -> Self
fn from(e: P2wpkhError) -> Self
Converts to this type from the input type.
source§impl From<TaprootError> for SighashError
impl From<TaprootError> for SighashError
source§fn from(e: TaprootError) -> Self
fn from(e: TaprootError) -> Self
Converts to this type from the input type.
source§impl PartialEq<SighashError> for SighashError
impl PartialEq<SighashError> for SighashError
source§fn eq(&self, other: &SighashError) -> bool
fn eq(&self, other: &SighashError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SighashError
impl StructuralEq for SighashError
impl StructuralPartialEq for SighashError
Auto Trait Implementations§
impl RefUnwindSafe for SighashError
impl Send for SighashError
impl Sync for SighashError
impl Unpin for SighashError
impl UnwindSafe for SighashError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more