pub enum ScriptError {
InputIndexOutOfRange {
index: usize,
inputs: usize,
},
UnknownFlag {
name: String,
},
Serialization(String),
Verification(String),
TaprootPrevoutsUnavailable,
TaprootUnsupportedWitness {
elements: usize,
},
}Expand description
Script execution errors surfaced by the script crate.
Variants§
InputIndexOutOfRange
The requested input index was not present in the transaction.
UnknownFlag
A Core vector flag name was not known by this crate.
Serialization(String)
The transaction could not be serialized for the delegated verifier.
Verification(String)
The delegated consensus verifier rejected the script.
Taproot key-path verification requires all prevouts for multi-input transactions.
TaprootUnsupportedWitness
This portable path only validates one-element Taproot key-path witnesses.
Trait Implementations§
Source§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl Display for ScriptError
impl Display for ScriptError
impl Eq for ScriptError
Source§impl Error for ScriptError
impl Error for ScriptError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for ScriptError
impl PartialEq for ScriptError
Source§fn eq(&self, other: &ScriptError) -> bool
fn eq(&self, other: &ScriptError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScriptError
Auto Trait Implementations§
impl Freeze for ScriptError
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnsafeUnpin for ScriptError
impl UnwindSafe for ScriptError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more