Versions in this module Expand all Collapse all v0 v0.1.1 Oct 20, 2022 v0.1.0 Oct 19, 2022 Changes in this version + var ErrInvalidPayloadBlockHash = errors.New("invalid payload block hash") + var ErrInvalidPayloadPrevRandao = errors.New("invalid payload previous randao") + var ErrInvalidPayloadTimeStamp = errors.New("invalid payload timestamp") + var ValidatorAlreadyExitedMsg = "has already submitted an exit, which will take place at epoch" + var ValidatorCannotExitYetMsg = "validator has not been active long enough to exit" + func ActivateValidatorWithEffectiveBalance(beaconState state.BeaconState, deposits []*ethpb.Deposit) (state.BeaconState, error) + func AreEth1DataEqual(a, b *ethpb.Eth1Data) bool + func AttestationSignatureBatch(ctx context.Context, beaconState state.ReadOnlyBeaconState, ...) (*bls.SignatureBatch, error) + func BatchVerifyDepositsSignatures(ctx context.Context, deposits []*ethpb.Deposit) (bool, error) + func BlockSignatureBatch(beaconState state.ReadOnlyBeaconState, proposerIndex types.ValidatorIndex, ...) (*bls.SignatureBatch, error) + func Eth1DataHasEnoughSupport(beaconState state.ReadOnlyBeaconState, data *ethpb.Eth1Data) (bool, error) + func GetBlockPayloadHash(blk interfaces.BeaconBlock) ([32]byte, error) + func IsExecutionBlock(body interfaces.BeaconBlockBody) (bool, error) + func IsExecutionEnabled(st state.BeaconState, body interfaces.BeaconBlockBody) (bool, error) + func IsExecutionEnabledUsingHeader(header *enginev1.ExecutionPayloadHeader, body interfaces.BeaconBlockBody) (bool, error) + func IsMergeTransitionComplete(st state.BeaconState) (bool, error) + func IsPreBellatrixVersion(v int) bool + func IsSlashableAttestationData(data1, data2 *ethpb.AttestationData) bool + func NewGenesisBlock(stateRoot []byte) *ethpb.SignedBeaconBlock + func ProcessAttestationNoVerifySignature(ctx context.Context, beaconState state.BeaconState, att *ethpb.Attestation) (state.BeaconState, error) + func ProcessAttestationsNoVerifySignature(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func ProcessAttesterSlashing(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func ProcessAttesterSlashings(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func ProcessBLSToExecutionChange(st state.BeaconState, signed *ethpb.SignedBLSToExecutionChange) (state.BeaconState, error) + func ProcessBlockHeader(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func ProcessBlockHeaderNoVerify(ctx context.Context, beaconState state.BeaconState, slot types.Slot, ...) (state.BeaconState, error) + func ProcessDeposit(beaconState state.BeaconState, deposit *ethpb.Deposit, verifySignature bool) (state.BeaconState, bool, error) + func ProcessDeposits(ctx context.Context, beaconState state.BeaconState, deposits []*ethpb.Deposit) (state.BeaconState, error) + func ProcessEth1DataInBlock(_ context.Context, beaconState state.BeaconState, eth1Data *ethpb.Eth1Data) (state.BeaconState, error) + func ProcessPayload(st state.BeaconState, payload interfaces.ExecutionData) (state.BeaconState, error) + func ProcessPayloadHeader(st state.BeaconState, header interfaces.ExecutionData) (state.BeaconState, error) + func ProcessPreGenesisDeposits(ctx context.Context, beaconState state.BeaconState, deposits []*ethpb.Deposit) (state.BeaconState, error) + func ProcessProposerSlashing(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func ProcessProposerSlashings(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func ProcessRandao(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func ProcessRandaoNoVerify(beaconState state.BeaconState, randaoReveal []byte) (state.BeaconState, error) + func ProcessVoluntaryExits(ctx context.Context, beaconState state.BeaconState, ...) (state.BeaconState, error) + func RandaoSignatureBatch(ctx context.Context, beaconState state.ReadOnlyBeaconState, reveal []byte) (*bls.SignatureBatch, error) + func SlashableAttesterIndices(slashing *ethpb.AttesterSlashing) []uint64 + func ValidatePayload(st state.BeaconState, payload interfaces.ExecutionData) error + func ValidatePayloadHeader(st state.BeaconState, header interfaces.ExecutionData) error + func ValidatePayloadHeaderWhenMergeCompletes(st state.BeaconState, header interfaces.ExecutionData) error + func ValidatePayloadWhenMergeCompletes(st state.BeaconState, payload interfaces.ExecutionData) error + func VerifyAttestationNoVerifySignature(ctx context.Context, beaconState state.ReadOnlyBeaconState, ...) error + func VerifyAttestationSignature(ctx context.Context, beaconState state.ReadOnlyBeaconState, ...) error + func VerifyAttesterSlashing(ctx context.Context, beaconState state.ReadOnlyBeaconState, ...) error + func VerifyBlockHeaderSignature(beaconState state.BeaconState, header *ethpb.SignedBeaconBlockHeader) error + func VerifyBlockSignature(beaconState state.ReadOnlyBeaconState, proposerIndex types.ValidatorIndex, ...) error + func VerifyBlockSignatureUsingCurrentFork(beaconState state.ReadOnlyBeaconState, blk interfaces.SignedBeaconBlock) error + func VerifyExitAndSignature(validator state.ReadOnlyValidator, currentSlot types.Slot, fork *ethpb.Fork, ...) error + func VerifyIndexedAttestation(ctx context.Context, beaconState state.ReadOnlyBeaconState, ...) error + func VerifyProposerSlashing(beaconState state.ReadOnlyBeaconState, slashing *ethpb.ProposerSlashing) error