validator

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const BeaconContainerSuffix = "_eth2"
View Source
const ValidatorContainerSuffix = "_validator"

Settings

View Source
const (
	ValidatorKeyPath string = "m/12381/3600/%d/0/0"
)

Config

Variables

This section is empty.

Functions

func GetDepositData

func GetDepositData(validatorKey *eth2types.BLSPrivateKey, withdrawalCredentials common.Hash, eth2Config beacon.Eth2Config, depositAmount uint64) (eth2.DepositData, common.Hash, error)

Get deposit data & root for a given validator key and withdrawal credentials

func GetPrivateKey added in v1.9.0

func GetPrivateKey(mnemonic string, index uint, path string) (*eth2types.BLSPrivateKey, error)

Get a private BLS key from the mnemonic, index, and path

func GetSignedExitMessage added in v0.0.6

func GetSignedExitMessage(validatorKey *eth2types.BLSPrivateKey, validatorIndex string, epoch uint64, signatureDomain []byte) (types.ValidatorSignature, error)

Get a voluntary exit message signature for a given validator key and index

func GetSignedWithdrawalCredsChangeMessage added in v1.9.0

func GetSignedWithdrawalCredsChangeMessage(withdrawalKey *eth2types.BLSPrivateKey, validatorIndex string, newWithdrawalAddress common.Address, signatureDomain []byte) (types.ValidatorSignature, error)

Get a voluntary exit message signature for a given validator key and index

func GetWithdrawalKey added in v1.9.0

func GetWithdrawalKey(mnemonic string, index uint, validatorKeyPath string) (*eth2types.BLSPrivateKey, error)

Get the withdrawal private key for a validator based on its mnemonic, index, and path

func InitializeBLS added in v1.9.0

func InitializeBLS() error

func RestartValidator added in v1.5.0

func RestartValidator(cfg *config.RocketPoolConfig, bc beacon.Client, log *log.ColorLogger, d *client.Client) error

Restart validator process

func StopValidator added in v1.5.0

func StopValidator(cfg *config.RocketPoolConfig, bc beacon.Client, log *log.ColorLogger, d *client.Client) error

Stops the validator process

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL