package
0.3.10
Repository: https://github.com/prysmaticlabs/go-ethereum.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ActivationExitEpoch takes in epoch number and returns when the validator is eligible for activation and exit.
ActiveValidatorCount returns the number of active validators in the state at the given epoch.
ActiveValidatorIndices filters out active validators based on validator status and returns their indices in a list.
AggregateAttestation aggregates attestations a1 and a2 together.
AggregateAttestations such that the minimal number of attestations are returned.
AggregateSignature returns the aggregated signature of the input attestations.
AttestingIndices returns the attesting participants indices from the attestation data.
BeaconCommittee returns the crosslink committee of a given slot and committee index.
BeaconCommitteeFromState returns the crosslink committee of a given slot and committee index.
BeaconProposerIndex returns proposer index of a current slot.
BlockRoot returns the block root stored in the BeaconState for epoch start slot.
BlockRootAtSlot returns the block root stored in the BeaconState for a recent slot.
ClearCache clears the committee cache.
CommitteeAssignment is used to query committee assignment from current and previous epoch.
CommitteeAssignments is a map of validator indices pointing to the appropriate committee assignment for the given epoch.
ComputeCommittee returns the requested shuffled committee out of the total committees using validator indices and seed.
ComputeProposerIndex returns the index sampled by effective balance, which is used to calculate proposer.
ComputeShuffledIndex returns the shuffled validator index corresponding to seed and index count.
CurrentEpoch returns the current epoch number calculated from the slot number stored in beacon state.
DecreaseBalance decreases validator with the given 'index' balance by 'delta' in Gwei.
Domain returns the domain version for BLS private key to sign and verify.
IncreaseBalance increases validator with the given 'index' balance by 'delta' in Gwei.
IsActiveValidator returns the boolean value on whether the validator is active or not.
IsActiveValidatorUsingTrie checks if a read only validator is active.
IsAggregated returns true if the attestation is an aggregated attestation, false otherwise.
IsAggregator returns true if the signature is from the input validator.
IsEligibleForActivation checks if the validator is eligible for activation.
IsEligibleForActivationQueue checks if the validator is eligible to be placed into the activation queue.
IsEligibleForActivationQueueUsingTrie checks if the read-only validator is eligible to be placed into the activation queue.
IsEligibleForActivationUsingTrie checks if the validator is eligible for activation.
IsEpochEnd returns true if the given slot number is an epoch ending slot number.
IsEpochStart returns true if the given slot number is an epoch starting slot number.
IsSlashableValidator returns the boolean value on whether the validator is slashable or not.
NextEpoch returns the next epoch number calculated form the slot number stored in beacon state.
PrevEpoch returns the previous epoch number calculated from the slot number stored in beacon state.
RandaoMix returns the randao mix (xor'ed seed) of a given slot.
RoundUpToNearestEpoch rounds up the provided slot value to the nearest epoch.
Seed returns the randao seed used for shuffling of a given epoch.
ShuffledIndex returns `p(index)` in a pseudorandom permutation `p` of `0...list_size - 1` with ``seed`` as entropy.
ShuffledIndices uses input beacon state and returns the shuffled indices of the input epoch, the shuffled indices then can be used to break up into committees.
ShuffleList returns list of shuffled indexes in a pseudorandom permutation `p` of `0...list_size - 1` with ``seed`` as entropy.
SlotCommitteeCount returns the number of crosslink committees of a slot.
SlotSignature returns the signed signature of the hash tree root of input slot.
SlotsSince computes the number of time slots that have occurred since the given timestamp.
SlotsSinceEpochStarts returns number of slots since the start of the epoch.
SlotToEpoch returns the epoch number of the input slot.
SplitIndices splits a list into n pieces.
StartSlot returns the first slot number of the current epoch.
TotalActiveBalance returns the total amount at stake in Gwei of active validators.
TotalBalance returns the total amount at stake in Gwei of input validators.
UnShuffledIndex returns the inverse of ShuffledIndex.
UnshuffleList un-shuffles the list by running backwards through the round count.
UpdateCommitteeCache gets called at the beginning of every epoch to cache the committee shuffled indices list with committee index and epoch number.
UpdateProposerIndicesInCache updates proposer indices entry of the committee cache.
ValidatorChurnLimit returns the number of validators that are allowed to enter and exit validator pool for an epoch.
VerifyAttestationBitfieldLengths verifies that an attestations aggregation bitfields is a valid length matching the size of the committee.
VerifyBitfieldLength verifies that a bitfield length matches the given committee size.
VerifySlotTime validates the input slot is not from the future.

# Variables

ErrAttestationAggregationBitsDifferentLen is returned when two attestation aggregation bits have different lengths.
ErrAttestationAggregationBitsOverlap is returned when two attestations aggregation bits overlap with each other.

# Structs

CommitteeAssignmentContainer represents a committee, index, and attester slot for a given epoch.