Documentation
¶
Index ¶
- Constants
- func GetDepositData(validatorKey *eth2types.BLSPrivateKey, withdrawalCredentials common.Hash, ...) (beacon.DepositData, common.Hash, error)
- func GetPrivateKey(mnemonic string, index uint, path string) (*eth2types.BLSPrivateKey, error)
- func GetSignedExitMessage(validatorKey *eth2types.BLSPrivateKey, validatorIndex string, epoch uint64, ...) (beacon.ValidatorSignature, error)
- func GetSignedWithdrawalCredsChangeMessage(withdrawalKey *eth2types.BLSPrivateKey, validatorIndex string, ...) (beacon.ValidatorSignature, error)
- func GetWithdrawalKey(mnemonic string, index uint, validatorKeyPath string) (*eth2types.BLSPrivateKey, error)
- func InitializeBLS() error
Constants ¶
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 types.Eth2Config, depositAmount uint64) (beacon.DepositData, common.Hash, error)
Get deposit data & root for a given validator key and withdrawal credentials
func GetPrivateKey ¶
Get a private BLS key from the mnemonic, index, and path
func GetSignedExitMessage ¶
func GetSignedExitMessage(validatorKey *eth2types.BLSPrivateKey, validatorIndex string, epoch uint64, signatureDomain []byte) (beacon.ValidatorSignature, error)
Get a voluntary exit message signature for a given validator key and index
func GetSignedWithdrawalCredsChangeMessage ¶
func GetSignedWithdrawalCredsChangeMessage(withdrawalKey *eth2types.BLSPrivateKey, validatorIndex string, newWithdrawalAddress common.Address, signatureDomain []byte) (beacon.ValidatorSignature, error)
Get a voluntary exit message signature for a given validator key and index
func GetWithdrawalKey ¶
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 ¶
func InitializeBLS() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.