pub enum RgbValidationError {
TopologicalOrderViolation {
transition_index: usize,
depends_on: usize,
},
SealDoubleSpend {
seal_ref: SealRef,
first_seen: usize,
second_seen: usize,
},
MissingStateInput {
transition_index: usize,
state_ref: StateRef,
},
AnchorCommitmentMismatch {
anchor_index: usize,
expected: Hash,
actual: Hash,
},
SchemaValidationFailed {
transition_index: usize,
error: String,
},
GenesisHasInputs,
ValueInflation {
transition_index: usize,
type_id: u16,
input_sum: u64,
output_sum: u64,
},
MissingSchema,
InvalidSignature {
transition_index: usize,
},
}Expand description
RGB-specific validation errors
Variants§
TopologicalOrderViolation
Topological ordering violation in transitions
SealDoubleSpend
Seal double-spend detected
MissingStateInput
StateRef input not found in prior outputs
AnchorCommitmentMismatch
Anchor commitment doesn’t match transition hash
SchemaValidationFailed
Schema validation failed
GenesisHasInputs
Genesis has non-zero inputs (invalid for RGB)
ValueInflation
Value conservation violation (fungible assets inflated)
MissingSchema
Missing schema required for validation
InvalidSignature
Invalid signature on a transition
Trait Implementations§
Source§impl Clone for RgbValidationError
impl Clone for RgbValidationError
Source§fn clone(&self) -> RgbValidationError
fn clone(&self) -> RgbValidationError
Returns a duplicate 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 RgbValidationError
impl Debug for RgbValidationError
Source§impl<'de> Deserialize<'de> for RgbValidationError
impl<'de> Deserialize<'de> for RgbValidationError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RgbValidationError
impl PartialEq for RgbValidationError
Source§impl Serialize for RgbValidationError
impl Serialize for RgbValidationError
impl Eq for RgbValidationError
impl StructuralPartialEq for RgbValidationError
Auto Trait Implementations§
impl Freeze for RgbValidationError
impl RefUnwindSafe for RgbValidationError
impl Send for RgbValidationError
impl Sync for RgbValidationError
impl Unpin for RgbValidationError
impl UnsafeUnpin for RgbValidationError
impl UnwindSafe for RgbValidationError
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