Documentation ¶
Index ¶
- type BLSToExecutionChangeInfo
- type ValidatorClient
- func (v *ValidatorClient) ContainsKey(pk [48]byte) bool
- func (v *ValidatorClient) ContainsValidatorIndex(index common.ValidatorIndex) bool
- func (vc *ValidatorClient) Logf(format string, values ...interface{})
- func (vc *ValidatorClient) Shutdown() error
- func (v *ValidatorClient) SignBLSToExecutionChange(domain common.BLSDomain, c BLSToExecutionChangeInfo) (*common.SignedBLSToExecutionChange, error)
- func (v *ValidatorClient) SignVoluntaryExit(domain common.BLSDomain, epoch common.Epoch, ...) (*phase0.SignedVoluntaryExit, error)
- func (vc *ValidatorClient) Start() error
- type ValidatorClientConfig
- type ValidatorClients
- func (all ValidatorClients) ByValidatorIndex(validatorIndex common.ValidatorIndex) *ValidatorClient
- func (all ValidatorClients) Running() ValidatorClients
- func (all ValidatorClients) SignBLSToExecutionChange(domain common.BLSDomain, c BLSToExecutionChangeInfo) (*common.SignedBLSToExecutionChange, error)
- type ValidatorKeys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLSToExecutionChangeInfo ¶
type BLSToExecutionChangeInfo struct { common.ValidatorIndex common.Eth1Address }
type ValidatorClient ¶
type ValidatorClient struct { clients.Client Logger utils.Logging ClientIndex int Config ValidatorClientConfig Keys map[common.ValidatorIndex]*ValidatorKeys }
func (*ValidatorClient) ContainsKey ¶
func (v *ValidatorClient) ContainsKey(pk [48]byte) bool
func (*ValidatorClient) ContainsValidatorIndex ¶
func (v *ValidatorClient) ContainsValidatorIndex( index common.ValidatorIndex, ) bool
func (*ValidatorClient) Logf ¶
func (vc *ValidatorClient) Logf(format string, values ...interface{})
func (*ValidatorClient) Shutdown ¶
func (vc *ValidatorClient) Shutdown() error
func (*ValidatorClient) SignBLSToExecutionChange ¶
func (v *ValidatorClient) SignBLSToExecutionChange( domain common.BLSDomain, c BLSToExecutionChangeInfo, ) (*common.SignedBLSToExecutionChange, error)
func (*ValidatorClient) SignVoluntaryExit ¶
func (v *ValidatorClient) SignVoluntaryExit( domain common.BLSDomain, epoch common.Epoch, validatorIndex common.ValidatorIndex, ) (*phase0.SignedVoluntaryExit, error)
func (*ValidatorClient) Start ¶
func (vc *ValidatorClient) Start() error
type ValidatorClientConfig ¶
type ValidatorClients ¶
type ValidatorClients []*ValidatorClient
func (ValidatorClients) ByValidatorIndex ¶
func (all ValidatorClients) ByValidatorIndex( validatorIndex common.ValidatorIndex, ) *ValidatorClient
Returns the validator that contains specified validator index
func (ValidatorClients) Running ¶
func (all ValidatorClients) Running() ValidatorClients
Return subset of clients that are currently running
func (ValidatorClients) SignBLSToExecutionChange ¶
func (all ValidatorClients) SignBLSToExecutionChange( domain common.BLSDomain, c BLSToExecutionChangeInfo, ) (*common.SignedBLSToExecutionChange, error)
type ValidatorKeys ¶
type ValidatorKeys struct { // ValidatorKeystoreJSON encodes an EIP-2335 keystore, serialized in JSON // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2335.md ValidatorKeystoreJSON []byte // ValidatorKeystorePass holds the secret used for ValidatorKeystoreJSON ValidatorKeystorePass string // ValidatorSecretKey is the serialized secret key for validator duties ValidatorSecretKey [32]byte // ValidatorSecretKey is the serialized pubkey derived from ValidatorSecretKey ValidatorPubkey [48]byte // WithdrawalSecretKey is the serialized secret key for withdrawing stake WithdrawalSecretKey [32]byte // WithdrawalPubkey is the serialized pubkey derived from WithdrawalSecretKey WithdrawalPubkey [48]byte }
Click to show internal directories.
Click to hide internal directories.