[][src]Trait beacon::Config

pub trait Config: Default + Clone + PartialEq + Eq + Debug + 'static {
    type Digest: Digest<OutputSize = U32>;
    type MaxValidatorsPerCommittee: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type SlotsPerHistoricalRoot: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type MaxProposerSlashings: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type MaxAttesterSlashings: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type MaxAttestations: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type MaxDeposits: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type MaxVoluntaryExits: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type MaxTransfers: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type HistoricalRootsLimit: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type ShardCount: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type SlotsPerEpoch: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type SlotsPerEth1VotingPeriod: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type ValidatorRegistryLimit: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type EpochsPerHistoricalVector: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type EpochsPerSlashingsVector: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    type MaxAttestationsPerEpoch: Unsigned + Debug + Clone + Eq + PartialEq + Default;
    fn target_committee_size() -> Uint;
fn min_per_epoch_churn_limit() -> Uint;
fn churn_limit_quotient() -> Uint;
fn shuffle_round_count() -> Uint;
fn min_genesis_active_validator_count() -> Uint;
fn min_genesis_time() -> Uint;
fn min_deposit_amount() -> Uint;
fn max_effective_balance() -> Uint;
fn ejection_balance() -> Uint;
fn effective_balance_increment() -> Uint;
fn genesis_slot() -> Uint;
fn genesis_epoch() -> Uint;
fn bls_withdrawal_prefix_byte() -> u8;
fn min_attestation_inclusion_delay() -> Uint;
fn min_seed_lookahead() -> Uint;
fn activation_exit_delay() -> Uint;
fn min_validator_withdrawability_delay() -> Uint;
fn persistent_committee_period() -> Uint;
fn max_epochs_per_crosslink() -> Uint;
fn min_epochs_to_inactivity_penalty() -> Uint;
fn base_reward_factor() -> Uint;
fn whistleblower_reward_quotient() -> Uint;
fn proposer_reward_quotient() -> Uint;
fn inactivity_penalty_quotient() -> Uint;
fn min_slashing_penalty_quotient() -> Uint;
fn domain_beacon_proposer() -> Uint;
fn domain_randao() -> Uint;
fn domain_attestation() -> Uint;
fn domain_deposit() -> Uint;
fn domain_voluntary_exit() -> Uint;
fn domain_transfer() -> Uint; fn shard_count() -> Uint { ... }
fn max_validators_per_committee() -> Uint { ... }
fn slots_per_epoch() -> Uint { ... }
fn slots_per_eth1_voting_period() -> Uint { ... }
fn slots_per_historical_root() -> Uint { ... }
fn epochs_per_historical_vector() -> Uint { ... }
fn epochs_per_slashings_vector() -> Uint { ... }
fn historical_roots_limit() -> Uint { ... }
fn validator_registry_limit() -> Uint { ... }
fn max_proposer_slashings() -> Uint { ... }
fn max_attester_slashings() -> Uint { ... }
fn max_attestations() -> Uint { ... }
fn max_deposits() -> Uint { ... }
fn max_voluntary_exits() -> Uint { ... }
fn max_transfers() -> Uint { ... }
fn hash<A: AsRef<[u8]>, I: IntoIterator<Item = A>>(inputs: I) -> H256 { ... } }

Constants used in beacon block.

Associated Types

type Digest: Digest<OutputSize = U32>

Digest hash function.

type MaxValidatorsPerCommittee: Unsigned + Debug + Clone + Eq + PartialEq + Default

Max validators per committee.

type SlotsPerHistoricalRoot: Unsigned + Debug + Clone + Eq + PartialEq + Default

Slots per historical root.

type MaxProposerSlashings: Unsigned + Debug + Clone + Eq + PartialEq + Default

Maximum proposer slashings.

type MaxAttesterSlashings: Unsigned + Debug + Clone + Eq + PartialEq + Default

Maximum attester slashings.

type MaxAttestations: Unsigned + Debug + Clone + Eq + PartialEq + Default

Maximum attestations in a given block.

type MaxDeposits: Unsigned + Debug + Clone + Eq + PartialEq + Default

Maximum deposits in a given block.

type MaxVoluntaryExits: Unsigned + Debug + Clone + Eq + PartialEq + Default

Maximum voluntary exists in a given block.

type MaxTransfers: Unsigned + Debug + Clone + Eq + PartialEq + Default

Maximum transfers in a given block.

type HistoricalRootsLimit: Unsigned + Debug + Clone + Eq + PartialEq + Default

Limit of historical roots.

type ShardCount: Unsigned + Debug + Clone + Eq + PartialEq + Default

Shard count.

type SlotsPerEpoch: Unsigned + Debug + Clone + Eq + PartialEq + Default

Slots per epoch.

type SlotsPerEth1VotingPeriod: Unsigned + Debug + Clone + Eq + PartialEq + Default

Slots per eth1 voting period.

type ValidatorRegistryLimit: Unsigned + Debug + Clone + Eq + PartialEq + Default

Validator registry limit.

type EpochsPerHistoricalVector: Unsigned + Debug + Clone + Eq + PartialEq + Default

Epochs per historical vector.

type EpochsPerSlashingsVector: Unsigned + Debug + Clone + Eq + PartialEq + Default

Epochs per slashings vector.

type MaxAttestationsPerEpoch: Unsigned + Debug + Clone + Eq + PartialEq + Default

Maximum attestations per epoch.

Loading content...

Required methods

fn target_committee_size() -> Uint

Target committee size.

fn min_per_epoch_churn_limit() -> Uint

Minimum per-epoch churn limit.

fn churn_limit_quotient() -> Uint

Churn limit quotient.

fn shuffle_round_count() -> Uint

Shuffle round count.

fn min_genesis_active_validator_count() -> Uint

Min genesis active validator count.

fn min_genesis_time() -> Uint

Min genesis time.

fn min_deposit_amount() -> Uint

Minimum deposit amount.

fn max_effective_balance() -> Uint

Maximum effective balance.

fn ejection_balance() -> Uint

Ejection balance.

fn effective_balance_increment() -> Uint

Effective balance increment.

fn genesis_slot() -> Uint

Genesis slot.

fn genesis_epoch() -> Uint

Genesis epoch.

fn bls_withdrawal_prefix_byte() -> u8

BLS withdrawal prefix byte.

fn min_attestation_inclusion_delay() -> Uint

Minimum attestation inclusion delay.

fn min_seed_lookahead() -> Uint

Minimum seed lookahead.

fn activation_exit_delay() -> Uint

Activation exit delay.

fn min_validator_withdrawability_delay() -> Uint

Minimal validator withdrawability delay.

fn persistent_committee_period() -> Uint

Persistent committee period.

Maximum crosslink epochs.

fn min_epochs_to_inactivity_penalty() -> Uint

Minimum epochs to inactivity penalty.

fn base_reward_factor() -> Uint

Base reward quotient.

fn whistleblower_reward_quotient() -> Uint

Whistleblowing reward quotient.

fn proposer_reward_quotient() -> Uint

Proposer reward quotient.

fn inactivity_penalty_quotient() -> Uint

Inactivity penalty quotient.

fn min_slashing_penalty_quotient() -> Uint

Minimal slashing penalty quotient.

fn domain_beacon_proposer() -> Uint

Beacon proposer domain.

fn domain_randao() -> Uint

Randao domain.

fn domain_attestation() -> Uint

Attestation domain.

fn domain_deposit() -> Uint

Deposit domain.

fn domain_voluntary_exit() -> Uint

Voluntary exit domain.

fn domain_transfer() -> Uint

Transfer domain.

Loading content...

Provided methods

fn shard_count() -> Uint

Shard count.

fn max_validators_per_committee() -> Uint

Maximum indices per attestation.

fn slots_per_epoch() -> Uint

Slots per epoch.

fn slots_per_eth1_voting_period() -> Uint

Slots per eth1 voting period.

fn slots_per_historical_root() -> Uint

Slots per historical root.

fn epochs_per_historical_vector() -> Uint

Epochs per historical vector

fn epochs_per_slashings_vector() -> Uint

Epochs per slashings vector

fn historical_roots_limit() -> Uint

Historical roots limit

fn validator_registry_limit() -> Uint

Validator registry limit

fn max_proposer_slashings() -> Uint

Maximum proposer slashings per block.

fn max_attester_slashings() -> Uint

Maximum attester slashings per block.

fn max_attestations() -> Uint

Maximum attestations per block.

fn max_deposits() -> Uint

Maximum deposits per block.

fn max_voluntary_exits() -> Uint

Maximum voluntary exits per block.

fn max_transfers() -> Uint

Maximum transfers per block.

fn hash<A: AsRef<[u8]>, I: IntoIterator<Item = A>>(inputs: I) -> H256

Hash function.

Loading content...

Implementors

impl Config for MainnetConfig[src]

type Digest = Sha256

type MaxValidatorsPerCommittee = U4096

type SlotsPerHistoricalRoot = U8192

type MaxProposerSlashings = U16

type MaxAttesterSlashings = U1

type MaxAttestations = U128

type MaxDeposits = U16

type MaxVoluntaryExits = U16

type MaxTransfers = U0

type HistoricalRootsLimit = U16777216

type ShardCount = U1024

type SlotsPerEpoch = U64

type SlotsPerEth1VotingPeriod = U1024

type ValidatorRegistryLimit = U1099511627776

type EpochsPerHistoricalVector = U65536

type EpochsPerSlashingsVector = U8192

type MaxAttestationsPerEpoch = Prod<Self::MaxAttestations, Self::SlotsPerEpoch>

impl Config for MinimalConfig[src]

type Digest = Sha256

type MaxValidatorsPerCommittee = U4096

type SlotsPerHistoricalRoot = U64

type MaxProposerSlashings = U16

type MaxAttesterSlashings = U1

type MaxAttestations = U128

type MaxDeposits = U16

type MaxVoluntaryExits = U16

type MaxTransfers = U0

type HistoricalRootsLimit = U16777216

type ShardCount = U8

type SlotsPerEpoch = U8

type SlotsPerEth1VotingPeriod = U16

type ValidatorRegistryLimit = U1099511627776

type EpochsPerHistoricalVector = U64

type EpochsPerSlashingsVector = U64

type MaxAttestationsPerEpoch = Prod<Self::MaxAttestations, Self::SlotsPerEpoch>

Loading content...