[][src]Struct types::attestation::Attestation

pub struct Attestation<T: EthSpec> {
    pub aggregation_bits: BitList<T::MaxValidatorsPerCommittee>,
    pub data: AttestationData,
    pub custody_bits: BitList<T::MaxValidatorsPerCommittee>,
    pub signature: AggregateSignature,
}

Details an attestation that can be slashable.

Spec v0.8.0

Fields

aggregation_bits: BitList<T::MaxValidatorsPerCommittee>data: AttestationDatacustody_bits: BitList<T::MaxValidatorsPerCommittee>signature: AggregateSignature

Methods

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

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

Are the aggregation bitfields of these attestations disjoint?

pub fn aggregate(&mut self, other: &Self)[src]

Aggregate another Attestation into this one.

The aggregation bitfields must be disjoint, and the data must be the same.

Trait Implementations

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

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<T> RefUnwindSafe for Attestation<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