MinimalEthSpec

Struct MinimalEthSpec 

Source
pub struct MinimalEthSpec;
Expand description

Ethereum Foundation minimal spec, as defined in the eth2.0-specs repo.

Trait Implementations§

Source§

impl<'arbitrary> Arbitrary<'arbitrary> for MinimalEthSpec

Source§

fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
Source§

fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
Source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

impl Clone for MinimalEthSpec

Source§

fn clone(&self) -> MinimalEthSpec

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MinimalEthSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MinimalEthSpec

Source§

fn default() -> MinimalEthSpec

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MinimalEthSpec

Source§

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 EthSpec for MinimalEthSpec

Source§

type SlotsPerEpoch = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>

Source§

type EpochsPerEth1VotingPeriod = UInt<UInt<UInt<UTerm, B1>, B0>, B0>

Source§

type SlotsPerHistoricalRoot = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>

Source§

type EpochsPerHistoricalVector = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>

Source§

type EpochsPerSlashingsVector = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>

Source§

type SyncCommitteeSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>

Source§

type SyncSubcommitteeSize = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>

The size of sync_subcommittees. Read more
Source§

type MaxPendingAttestations = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>

The length of the {previous,current}_epoch_attestations lists. Read more
Source§

type SlotsPerEth1VotingPeriod = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>

The length of eth1_data_votes. Read more
Source§

type MaxWithdrawalsPerPayload = UInt<UInt<UInt<UTerm, B1>, B0>, B0>

Source§

type JustificationBitsLength = <MainnetEthSpec as EthSpec>::JustificationBitsLength

Source§

type SubnetBitfieldLength = <MainnetEthSpec as EthSpec>::SubnetBitfieldLength

Source§

type SyncCommitteeSubnetCount = <MainnetEthSpec as EthSpec>::SyncCommitteeSubnetCount

The number of sync_committee subnets.
Source§

type MaxValidatorsPerCommittee = <MainnetEthSpec as EthSpec>::MaxValidatorsPerCommittee

Source§

type GenesisEpoch = <MainnetEthSpec as EthSpec>::GenesisEpoch

Source§

type HistoricalRootsLimit = <MainnetEthSpec as EthSpec>::HistoricalRootsLimit

Source§

type ValidatorRegistryLimit = <MainnetEthSpec as EthSpec>::ValidatorRegistryLimit

Source§

type MaxProposerSlashings = <MainnetEthSpec as EthSpec>::MaxProposerSlashings

Source§

type MaxAttesterSlashings = <MainnetEthSpec as EthSpec>::MaxAttesterSlashings

Source§

type MaxAttestations = <MainnetEthSpec as EthSpec>::MaxAttestations

Source§

type MaxDeposits = <MainnetEthSpec as EthSpec>::MaxDeposits

Source§

type MaxVoluntaryExits = <MainnetEthSpec as EthSpec>::MaxVoluntaryExits

Source§

type MaxBytesPerTransaction = <MainnetEthSpec as EthSpec>::MaxBytesPerTransaction

Source§

type MaxTransactionsPerPayload = <MainnetEthSpec as EthSpec>::MaxTransactionsPerPayload

Source§

type BytesPerLogsBloom = <MainnetEthSpec as EthSpec>::BytesPerLogsBloom

Source§

type GasLimitDenominator = <MainnetEthSpec as EthSpec>::GasLimitDenominator

Source§

type MinGasLimit = <MainnetEthSpec as EthSpec>::MinGasLimit

Source§

type MaxExtraDataBytes = <MainnetEthSpec as EthSpec>::MaxExtraDataBytes

Source§

type MaxBlsToExecutionChanges = <MainnetEthSpec as EthSpec>::MaxBlsToExecutionChanges

Source§

type MaxBlobsPerBlock = <MainnetEthSpec as EthSpec>::MaxBlobsPerBlock

Source§

type FieldElementsPerBlob = <MainnetEthSpec as EthSpec>::FieldElementsPerBlob

Source§

fn spec_name() -> EthSpecId

Source§

fn minimum_validator_count() -> usize

Returns the minimum number of validators required for this spec. Read more
Source§

fn slots_per_epoch() -> u64

Returns the SLOTS_PER_EPOCH constant for this specification. Read more
Source§

fn slots_per_historical_root() -> usize

Returns the SLOTS_PER_HISTORICAL_ROOT constant for this specification. Read more
Source§

fn epochs_per_historical_vector() -> usize

Returns the EPOCHS_PER_HISTORICAL_VECTOR constant for this specification. Read more
Source§

fn slots_per_eth1_voting_period() -> usize

Returns the SLOTS_PER_ETH1_VOTING_PERIOD constant for this specification. Read more
Source§

fn sync_committee_size() -> usize

Returns the SYNC_COMMITTEE_SIZE constant for this specification.
Source§

fn sync_subcommittee_size() -> usize

Returns the SYNC_COMMITTEE_SIZE / SyncCommitteeSubnetCount.
Source§

fn max_bytes_per_transaction() -> usize

Returns the MAX_BYTES_PER_TRANSACTION constant for this specification.
Source§

fn max_transactions_per_payload() -> usize

Returns the MAX_TRANSACTIONS_PER_PAYLOAD constant for this specification.
Source§

fn max_extra_data_bytes() -> usize

Returns the MAX_EXTRA_DATA_BYTES constant for this specification.
Source§

fn bytes_per_logs_bloom() -> usize

Returns the BYTES_PER_LOGS_BLOOM constant for this specification.
Source§

fn max_bls_to_execution_changes() -> usize

Returns the MAX_BLS_TO_EXECUTION_CHANGES constant for this specification.
Source§

fn max_withdrawals_per_payload() -> usize

Returns the MAX_WITHDRAWALS_PER_PAYLOAD constant for this specification.
Source§

fn max_blobs_per_block() -> usize

Returns the MAX_BLOBS_PER_BLOCK constant for this specification.
Source§

impl PartialEq for MinimalEthSpec

Source§

fn eq(&self, other: &MinimalEthSpec) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MinimalEthSpec

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for MinimalEthSpec

Source§

impl StructuralPartialEq for MinimalEthSpec

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> JsonSchemaMaybe for T