pub enum TidecoinValidationError {
Script(ScriptError),
InvalidInputIndex {
index: usize,
inputs: usize,
},
InvalidFlags,
AmountRequired,
MissingSpentOutput(OutPoint),
}Expand description
High-level validation errors produced by the Tidecoin validation engine.
Variants§
Script(ScriptError)
Script execution reached the consensus engine and failed with a specific script error.
Callers should treat this as a consensus-invalid spend for the selected script, witness, amount, and flag combination rather than as malformed caller input.
InvalidInputIndex
The requested input index does not exist in the spending transaction.
This indicates a caller-side setup error. Retrying with the same input index and transaction will fail again.
Fields
InvalidFlags
Script verification flags were invalid.
This indicates the caller supplied unsupported or inconsistent verification bits rather than a consensus-invalid script.
AmountRequired
Input amount is required for the selected witness verification path.
This indicates the caller attempted a witness-aware verification path without providing the spent output amount required by the engine.
MissingSpentOutput(OutPoint)
A spent output needed for validation was missing.
This indicates required prevout state was unavailable at the engine boundary. It is a missing-context error, not a script failure.
Trait Implementations§
Source§impl Clone for TidecoinValidationError
impl Clone for TidecoinValidationError
Source§fn clone(&self) -> TidecoinValidationError
fn clone(&self) -> TidecoinValidationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TidecoinValidationError
impl Debug for TidecoinValidationError
Source§impl Display for TidecoinValidationError
impl Display for TidecoinValidationError
Source§impl Error for TidecoinValidationError
Available on crate feature std only.
impl Error for TidecoinValidationError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()