pub struct EquivocationProof {
pub validator: ValidatorId,
pub view: ViewNumber,
pub vote_type: VoteType,
pub epoch: EpochNumber,
pub block_hash_a: BlockHash,
pub signature_a: Signature,
pub block_hash_b: BlockHash,
pub signature_b: Signature,
}Expand description
Proof that a validator voted for two different blocks in the same (view, vote_type).
Fields§
§validator: ValidatorId§view: ViewNumber§vote_type: VoteType§epoch: EpochNumberEpoch in which the equivocation occurred. Required for cross-epoch evidence verification (the signing_bytes include epoch).
block_hash_a: BlockHash§signature_a: Signature§block_hash_b: BlockHash§signature_b: SignatureTrait Implementations§
Source§impl Clone for EquivocationProof
impl Clone for EquivocationProof
Source§fn clone(&self) -> EquivocationProof
fn clone(&self) -> EquivocationProof
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 EquivocationProof
impl Debug for EquivocationProof
Source§impl<'de> Deserialize<'de> for EquivocationProof
impl<'de> Deserialize<'de> for EquivocationProof
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
Auto Trait Implementations§
impl Freeze for EquivocationProof
impl RefUnwindSafe for EquivocationProof
impl Send for EquivocationProof
impl Sync for EquivocationProof
impl Unpin for EquivocationProof
impl UnsafeUnpin for EquivocationProof
impl UnwindSafe for EquivocationProof
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