pub enum SlashReason {
DoubleSign,
InvalidStateRoot,
Downtime,
InvalidSnapshot,
Censorship,
OracleLie,
OracleSilence {
request_id: [u8; 32],
},
}Variants§
DoubleSign
InvalidStateRoot
Downtime
InvalidSnapshot
Censorship
OracleLie
Validator committed to an oracle response then revealed fabricated data. Cryptographically provable: reveal hash != commit hash stored on-chain.
OracleSilence
Validator committed to an oracle request but never revealed within the deadline. Liveness infraction. Evidence: request_id that expired unrevealed.
Trait Implementations§
Source§impl Clone for SlashReason
impl Clone for SlashReason
Source§fn clone(&self) -> SlashReason
fn clone(&self) -> SlashReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SlashReason
impl Debug for SlashReason
Source§impl<'de> Deserialize<'de> for SlashReason
impl<'de> Deserialize<'de> for SlashReason
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 SlashReason
impl PartialEq for SlashReason
Source§fn eq(&self, other: &SlashReason) -> bool
fn eq(&self, other: &SlashReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SlashReason
impl Serialize for SlashReason
impl StructuralPartialEq for SlashReason
Auto Trait Implementations§
impl Freeze for SlashReason
impl RefUnwindSafe for SlashReason
impl Send for SlashReason
impl Sync for SlashReason
impl Unpin for SlashReason
impl UnsafeUnpin for SlashReason
impl UnwindSafe for SlashReason
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