package
0.0.0-20190209202311-c85edb6a4546
Repository: https://github.com/phoreproject/prysm.git
Documentation: pkg.go.dev
# Functions
ActivateValidator takes in validator index and updates validator's activation slot.
ActiveValidators returns the active validator records in a list.
AllValidatorsIndices returns all validator indices from 0 to the last validator.
Attesters returns the validator records using validator indices.
AttestingBalance returns the combined balances from the input validator records.
AttestingValidatorIndices returns the shard committee validator indices if the validator shard committee matches the input attestations.
BeaconProposerIdx returns the index of the proposer of the block at a given slot.
EffectiveBalance returns the balance at stake for the validator.
ExitValidator takes in validator index and does house keeping work to exit validator with entry exit delay.
InitialValidatorRegistry creates a new validator set that is used to generate a new bootstrapped state.
InitiateValidatorExit takes in validator index and updates validator with INITIATED_EXIT status flag.
PenalizeValidator slashes the malicious validator's balance and awards the whistleblower's balance.
PrepareValidatorForWithdrawal sets validator's status flag to WITHDRAWABLE.
ProcessDeposit mutates a corresponding index in the beacon state for a validator depositing ETH into the beacon chain.
ProcessPenaltiesAndExits prepares the validators and the penalized validators for withdrawal.
TotalEffectiveBalance returns the total deposited amount at stake in Gwei of all active validators.
UpdateRegistry rotates validators in and out of active pool.
ValidatorIdx returns the idx of the validator given an input public key.
ValidatorIndices returns all the validator indices from the input attestations and state.