[−][src]Trait beacon::Config
Constants used in beacon block.
Associated Types
Loading content...Required methods
fn shard_count(&self) -> usize
Shard count.
fn target_committee_size(&self) -> usize
Target committee size.
fn max_balance_churn_quotient(&self) -> Gwei
Maximum balance churn quotient.
fn max_indices_per_slashable_vote(&self) -> usize
Maximum indices per slashable vote.
fn max_exit_dequeues_per_epoch(&self) -> usize
Maximum exit dequeues per epoch.
fn shuffle_round_count(&self) -> usize
Shuffle round count.
fn deposit_contract_tree_depth(&self) -> usize
Deposit contract tree depth.
fn min_deposit_amount(&self) -> Gwei
Minimum deposit amount.
fn max_deposit_amount(&self) -> Gwei
Maximum deposit amount.
fn fork_choice_balance_increment(&self) -> Gwei
Fork choice balance increment.
fn ejection_balance(&self) -> Gwei
Ejection balance.
fn genesis_fork_version(&self) -> Version
Genesis fork version.
fn genesis_slot(&self) -> Slot
Genesis slot.
fn genesis_start_shard(&self) -> Shard
Genesis start shard.
fn bls_withdrawal_prefix_byte(&self) -> u8
BLS withdrawal prefix byte.
fn seconds_per_slot(&self) -> u64
Seconds per slot.
fn min_attestation_inclusion_delay(&self) -> Slot
Minimum attestation inclusion delay.
fn slots_per_epoch(&self) -> Slot
Slots per epoch.
fn min_seed_lookahead(&self) -> Epoch
Minimum seed lookahead.
fn activation_exit_delay(&self) -> Epoch
Activation exit delay.
fn epochs_per_eth1_voting_period(&self) -> Epoch
Epoch per eth1 voting period.
fn slots_per_historical_root(&self) -> usize
Slots per historical root.
fn min_validator_withdrawability_delay(&self) -> Epoch
Minimal validator withdrawability delay.
fn persistent_committee_period(&self) -> Epoch
Persistent committee period.
fn latest_randao_mixes_length(&self) -> usize
Latest randao mixes length.
fn latest_active_index_roots_length(&self) -> usize
Latest active index roots length.
fn latest_slashed_exit_length(&self) -> usize
Latest slashed exit length.
fn base_reward_quotient(&self) -> Gwei
Base reward quotient.
fn whistleblower_reward_quotient(&self) -> Gwei
Whistleblower reward quotient.
fn attestation_inclusion_reward_quotient(&self) -> Gwei
Attestation inclusion reward quotient.
fn inactivity_penalty_quotient(&self) -> Gwei
Inactivity penalty quotient.
fn min_penalty_quotient(&self) -> Gwei
Minimal penalty quotient.
fn max_proposer_slashings(&self) -> usize
Maximum proposer slashings per block.
fn max_attester_slashings(&self) -> usize
Maximum attester slashings per block.
fn max_attestations(&self) -> usize
Maximum attestations per block.
fn max_deposits(&self) -> usize
Maximum deposits per block.
fn max_voluntary_exits(&self) -> usize
Maximum voluntary exits per block.
fn max_transfers(&self) -> usize
Maximum transfers per block.
fn domain_beacon_block(&self) -> u64
Beacon block domain.
fn domain_randao(&self) -> u64
Randao domain.
fn domain_attestation(&self) -> u64
Attestation domain.
fn domain_deposit(&self) -> u64
Deposit domain.
fn domain_voluntary_exit(&self) -> u64
Voluntary exit domain.
fn domain_transfer(&self) -> u64
Transfer domain.
fn far_future_epoch(&self) -> Epoch
Far future epoch.
fn domain_id(&self, fork: &Fork, epoch: Epoch, typ: u64) -> u64
Get domain id for given fork, epoch and type.
fn bls_verify(
&self,
pubkey: &ValidatorId,
message: &H256,
signature: &Signature,
domain: u64
) -> bool
&self,
pubkey: &ValidatorId,
message: &H256,
signature: &Signature,
domain: u64
) -> bool
Verify BLS signature.
fn bls_aggregate_pubkeys(&self, pubkeys: &[ValidatorId]) -> Option<ValidatorId>
Aggregate BLS public keys.
fn bls_verify_multiple(
&self,
pubkeys: &[ValidatorId],
messages: &[H256],
signature: &Signature,
domain: u64
) -> bool
&self,
pubkeys: &[ValidatorId],
messages: &[H256],
signature: &Signature,
domain: u64
) -> bool
Verify multiple BLS signatures.
Provided methods
fn genesis_epoch(&self) -> Epoch
Genesis epoch.
fn hash(&self, seed: &[u8]) -> H256
Hash bytes with a hasher.
fn hash2(&self, seed: &[u8], a: &[u8]) -> H256
Hash two bytes with a hasher.
fn hash3(&self, seed: &[u8], a: &[u8], b: &[u8]) -> H256
Hash three bytes with a hasher.
fn slot_to_epoch(&self, slot: Slot) -> Epoch
Convert slot into epoch.
fn epoch_start_slot(&self, epoch: Epoch) -> Slot
Get start slot for an epoch.
fn permuted_index(&self, index: usize, seed: &H256, len: usize) -> usize
Get the permuted index.
fn compute_committee(
&self,
validators: &[ValidatorIndex],
seed: &H256,
index: usize,
total_committees: usize
) -> Vec<ValidatorIndex>
&self,
validators: &[ValidatorIndex],
seed: &H256,
index: usize,
total_committees: usize
) -> Vec<ValidatorIndex>
Compute committee.
fn epoch_committee_count(&self, active_validator_count: usize) -> usize
Get epoch committee count.
Implementors
impl Config for NoVerificationConfig
[src]
type Hasher = KeccakHasher
fn shard_count(&self) -> usize
[src]
fn target_committee_size(&self) -> usize
[src]
fn max_balance_churn_quotient(&self) -> Gwei
[src]
fn max_indices_per_slashable_vote(&self) -> usize
[src]
fn max_exit_dequeues_per_epoch(&self) -> usize
[src]
fn shuffle_round_count(&self) -> usize
[src]
fn deposit_contract_tree_depth(&self) -> usize
[src]
fn min_deposit_amount(&self) -> Gwei
[src]
fn max_deposit_amount(&self) -> Gwei
[src]
fn fork_choice_balance_increment(&self) -> Gwei
[src]
fn ejection_balance(&self) -> Gwei
[src]
fn genesis_fork_version(&self) -> Version
[src]
fn genesis_slot(&self) -> Slot
[src]
fn genesis_start_shard(&self) -> Shard
[src]
fn bls_withdrawal_prefix_byte(&self) -> u8
[src]
fn seconds_per_slot(&self) -> u64
[src]
fn min_attestation_inclusion_delay(&self) -> Slot
[src]
fn slots_per_epoch(&self) -> Slot
[src]
fn min_seed_lookahead(&self) -> Epoch
[src]
fn activation_exit_delay(&self) -> Epoch
[src]
fn epochs_per_eth1_voting_period(&self) -> Epoch
[src]
fn slots_per_historical_root(&self) -> usize
[src]
fn min_validator_withdrawability_delay(&self) -> Epoch
[src]
fn persistent_committee_period(&self) -> Epoch
[src]
fn latest_randao_mixes_length(&self) -> usize
[src]
fn latest_active_index_roots_length(&self) -> usize
[src]
fn latest_slashed_exit_length(&self) -> usize
[src]
fn base_reward_quotient(&self) -> Gwei
[src]
fn whistleblower_reward_quotient(&self) -> Gwei
[src]
fn attestation_inclusion_reward_quotient(&self) -> Gwei
[src]
fn inactivity_penalty_quotient(&self) -> Gwei
[src]
fn min_penalty_quotient(&self) -> Gwei
[src]
fn max_proposer_slashings(&self) -> usize
[src]
fn max_attester_slashings(&self) -> usize
[src]
fn max_attestations(&self) -> usize
[src]
fn max_deposits(&self) -> usize
[src]
fn max_voluntary_exits(&self) -> usize
[src]
fn max_transfers(&self) -> usize
[src]
fn domain_beacon_block(&self) -> u64
[src]
fn domain_randao(&self) -> u64
[src]
fn domain_attestation(&self) -> u64
[src]
fn domain_deposit(&self) -> u64
[src]
fn domain_voluntary_exit(&self) -> u64
[src]
fn domain_transfer(&self) -> u64
[src]
fn far_future_epoch(&self) -> Epoch
[src]
fn domain_id(&self, fork: &Fork, epoch: Epoch, typ: u64) -> u64
[src]
fn bls_verify(
&self,
_pubkey: &ValidatorId,
_message: &H256,
_signature: &Signature,
_domain: u64
) -> bool
[src]
&self,
_pubkey: &ValidatorId,
_message: &H256,
_signature: &Signature,
_domain: u64
) -> bool
fn bls_aggregate_pubkeys(&self, _pubkeys: &[ValidatorId]) -> Option<ValidatorId>
[src]
fn bls_verify_multiple(
&self,
_pubkeys: &[ValidatorId],
_messages: &[H256],
_signature: &Signature,
_domain: u64
) -> bool
[src]
&self,
_pubkeys: &[ValidatorId],
_messages: &[H256],
_signature: &Signature,
_domain: u64
) -> bool
fn genesis_epoch(&self) -> Epoch
[src]
fn hash(&self, seed: &[u8]) -> H256
[src]
fn hash2(&self, seed: &[u8], a: &[u8]) -> H256
[src]
fn hash3(&self, seed: &[u8], a: &[u8], b: &[u8]) -> H256
[src]
fn slot_to_epoch(&self, slot: Slot) -> Epoch
[src]
fn epoch_start_slot(&self, epoch: Epoch) -> Slot
[src]
fn permuted_index(&self, index: usize, seed: &H256, len: usize) -> usize
[src]
fn compute_committee(
&self,
validators: &[ValidatorIndex],
seed: &H256,
index: usize,
total_committees: usize
) -> Vec<ValidatorIndex>
[src]
&self,
validators: &[ValidatorIndex],
seed: &H256,
index: usize,
total_committees: usize
) -> Vec<ValidatorIndex>