[][src]Struct types::indexed_attestation::IndexedAttestation

pub struct IndexedAttestation<T: EthSpec> {
    pub custody_bit_0_indices: VariableList<u64, T::MaxValidatorsPerCommittee>,
    pub custody_bit_1_indices: VariableList<u64, T::MaxValidatorsPerCommittee>,
    pub data: AttestationData,
    pub signature: AggregateSignature,
}

Details an attestation that can be slashable.

To be included in an AttesterSlashing.

Spec v0.8.0

Fields

custody_bit_0_indices: VariableList<u64, T::MaxValidatorsPerCommittee>

Lists validator registry indices, not committee indices.

custody_bit_1_indices: VariableList<u64, T::MaxValidatorsPerCommittee>data: AttestationDatasignature: AggregateSignature

Methods

impl<T: EthSpec> IndexedAttestation<T>[src]

pub fn is_double_vote(&self, other: &Self) -> bool[src]

Check if attestation_data_1 and attestation_data_2 have the same target.

Spec v0.8.0

pub fn is_surround_vote(&self, other: &Self) -> bool[src]

Check if attestation_data_1 surrounds attestation_data_2.

Spec v0.8.0

Trait Implementations

impl<T: EthSpec> TestRandom for IndexedAttestation<T>[src]

impl<T: Clone + EthSpec> Clone for IndexedAttestation<T> where
    T::MaxValidatorsPerCommittee: Clone,
    T::MaxValidatorsPerCommittee: Clone
[src]

impl<T: PartialEq + EthSpec> PartialEq<IndexedAttestation<T>> for IndexedAttestation<T> where
    T::MaxValidatorsPerCommittee: PartialEq,
    T::MaxValidatorsPerCommittee: PartialEq
[src]

impl<T: Debug + EthSpec> Debug for IndexedAttestation<T> where
    T::MaxValidatorsPerCommittee: Debug,
    T::MaxValidatorsPerCommittee: Debug
[src]

impl<T: EthSpec> SignedRoot for IndexedAttestation<T>[src]

impl<T: EthSpec> TreeHash for IndexedAttestation<T>[src]

impl<T: EthSpec> Serialize for IndexedAttestation<T> where
    T: EthSpec
[src]

impl<'de, T: EthSpec> Deserialize<'de> for IndexedAttestation<T> where
    T: EthSpec
[src]

impl<T: EthSpec> Decode for IndexedAttestation<T>[src]

impl<T: EthSpec> Encode for IndexedAttestation<T>[src]

Auto Trait Implementations

impl<T> Send for IndexedAttestation<T> where
    <T as EthSpec>::MaxValidatorsPerCommittee: Send

impl<T> Unpin for IndexedAttestation<T> where
    <T as EthSpec>::MaxValidatorsPerCommittee: Unpin

impl<T> Sync for IndexedAttestation<T> where
    <T as EthSpec>::MaxValidatorsPerCommittee: Sync

impl<T> UnwindSafe for IndexedAttestation<T> where
    <T as EthSpec>::MaxValidatorsPerCommittee: UnwindSafe

impl<T> RefUnwindSafe for IndexedAttestation<T> where
    <T as EthSpec>::MaxValidatorsPerCommittee: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized