package
0.2.7
Repository: https://github.com/gobitfly/prysm.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ActiveIndicesKeys returns the keys of the active indices cache.
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 epoch.
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.
ClearActiveCountCache restarts the active validator count cache from scratch.
ClearActiveIndicesCache restarts the active validator indices cache from scratch.
ClearAllCaches clears all the helpers caches from scratch.
CommitteeAssignment is used to query committee assignment from current and previous epoch.
CommitteeCountAtSlot returns the number of crosslink committees of a slot.
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.
DelayedActivationExitEpoch takes in epoch number and returns when the validator is eligible for activation and exit.
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.
IsAggregator returns true if the signature is from the input validator.
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.
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.
SlotSignature returns the signed signature of the hash tree root of input slot.
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.
ValidatorChurnLimit returns the number of validators that are allowed to enter and exit validator pool for an epoch.
VerifyAttestationBitfieldLengths verifies that an attestations aggregation and custody bitfields are 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

ErrAttestationAggregationBitsOverlap is returned when two attestations aggregation bits overlap with each other.
ErrAttestationDataSlotNilData is returned when a nil attestation data argument is provided to AttestationDataSlot.
ErrAttestationDataSlotNilState is returned when a nil state argument is provided to AttestationDataSlot.
ErrInvalidStateLatestActiveIndexRoots is returned when the state active index root count does not match the expected EpochsPerHistoricalVector.