Documentation ¶
Index ¶
- type AggregatorRunner
- func (r *AggregatorRunner) Decode(data []byte) error
- func (r *AggregatorRunner) Encode() ([]byte, error)
- func (r *AggregatorRunner) GetBaseRunner() *BaseRunner
- func (r *AggregatorRunner) GetBeaconNode() specssv.BeaconNode
- func (r *AggregatorRunner) GetNetwork() specssv.Network
- func (r *AggregatorRunner) GetRoot() ([32]byte, error)
- func (r *AggregatorRunner) GetShare() *spectypes.Share
- func (r *AggregatorRunner) GetSigner() spectypes.KeyManager
- func (r *AggregatorRunner) GetState() *State
- func (r *AggregatorRunner) GetValCheckF() specqbft.ProposedValueCheckF
- func (r *AggregatorRunner) HasRunningDuty() bool
- func (r *AggregatorRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
- func (r *AggregatorRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *AggregatorRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *AggregatorRunner) StartNewDuty(logger *zap.Logger, duty *spectypes.Duty) error
- type AttesterRunner
- func (r *AttesterRunner) Decode(data []byte) error
- func (r *AttesterRunner) Encode() ([]byte, error)
- func (r *AttesterRunner) GetBaseRunner() *BaseRunner
- func (r *AttesterRunner) GetBeaconNode() specssv.BeaconNode
- func (r *AttesterRunner) GetNetwork() specssv.Network
- func (r *AttesterRunner) GetRoot() ([32]byte, error)
- func (r *AttesterRunner) GetShare() *spectypes.Share
- func (r *AttesterRunner) GetSigner() spectypes.KeyManager
- func (r *AttesterRunner) GetState() *State
- func (r *AttesterRunner) GetValCheckF() specqbft.ProposedValueCheckF
- func (r *AttesterRunner) HasRunningDuty() bool
- func (r *AttesterRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
- func (r *AttesterRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *AttesterRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *AttesterRunner) StartNewDuty(logger *zap.Logger, duty *spectypes.Duty) error
- type BaseRunner
- type DutyRunners
- type Getters
- type ProposerRunner
- func (r *ProposerRunner) Decode(data []byte) error
- func (r *ProposerRunner) Encode() ([]byte, error)
- func (r *ProposerRunner) GetBaseRunner() *BaseRunner
- func (r *ProposerRunner) GetBeaconNode() specssv.BeaconNode
- func (r *ProposerRunner) GetNetwork() specssv.Network
- func (r *ProposerRunner) GetRoot() ([32]byte, error)
- func (r *ProposerRunner) GetShare() *spectypes.Share
- func (r *ProposerRunner) GetSigner() spectypes.KeyManager
- func (r *ProposerRunner) GetState() *State
- func (r *ProposerRunner) GetValCheckF() specqbft.ProposedValueCheckF
- func (r *ProposerRunner) HasRunningDuty() bool
- func (r *ProposerRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
- func (r *ProposerRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *ProposerRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *ProposerRunner) StartNewDuty(logger *zap.Logger, duty *spectypes.Duty) error
- type Runner
- func NewAggregatorRunner(beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, ...) Runner
- func NewAttesterRunnner(beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, ...) Runner
- func NewProposerRunner(beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, ...) Runner
- func NewSyncCommitteeAggregatorRunner(beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, ...) Runner
- func NewSyncCommitteeRunner(beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, ...) Runner
- func NewValidatorRegistrationRunner(beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, ...) Runner
- type State
- type SyncCommitteeAggregatorRunner
- func (r *SyncCommitteeAggregatorRunner) Decode(data []byte) error
- func (r *SyncCommitteeAggregatorRunner) Encode() ([]byte, error)
- func (r *SyncCommitteeAggregatorRunner) GetBaseRunner() *BaseRunner
- func (r *SyncCommitteeAggregatorRunner) GetBeaconNode() specssv.BeaconNode
- func (r *SyncCommitteeAggregatorRunner) GetNetwork() specssv.Network
- func (r *SyncCommitteeAggregatorRunner) GetRoot() ([32]byte, error)
- func (r *SyncCommitteeAggregatorRunner) GetShare() *spectypes.Share
- func (r *SyncCommitteeAggregatorRunner) GetSigner() spectypes.KeyManager
- func (r *SyncCommitteeAggregatorRunner) GetState() *State
- func (r *SyncCommitteeAggregatorRunner) GetValCheckF() specqbft.ProposedValueCheckF
- func (r *SyncCommitteeAggregatorRunner) HasRunningDuty() bool
- func (r *SyncCommitteeAggregatorRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
- func (r *SyncCommitteeAggregatorRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *SyncCommitteeAggregatorRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *SyncCommitteeAggregatorRunner) StartNewDuty(logger *zap.Logger, duty *spectypes.Duty) error
- type SyncCommitteeRunner
- func (r *SyncCommitteeRunner) Decode(data []byte) error
- func (r *SyncCommitteeRunner) Encode() ([]byte, error)
- func (r *SyncCommitteeRunner) GetBaseRunner() *BaseRunner
- func (r *SyncCommitteeRunner) GetBeaconNode() specssv.BeaconNode
- func (r *SyncCommitteeRunner) GetNetwork() specssv.Network
- func (r *SyncCommitteeRunner) GetRoot() ([32]byte, error)
- func (r *SyncCommitteeRunner) GetShare() *spectypes.Share
- func (r *SyncCommitteeRunner) GetSigner() spectypes.KeyManager
- func (r *SyncCommitteeRunner) GetState() *State
- func (r *SyncCommitteeRunner) GetValCheckF() specqbft.ProposedValueCheckF
- func (r *SyncCommitteeRunner) HasRunningDuty() bool
- func (r *SyncCommitteeRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
- func (r *SyncCommitteeRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *SyncCommitteeRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *SyncCommitteeRunner) StartNewDuty(logger *zap.Logger, duty *spectypes.Duty) error
- type TimeoutF
- type ValidatorRegistrationRunner
- func (r *ValidatorRegistrationRunner) Decode(data []byte) error
- func (r *ValidatorRegistrationRunner) Encode() ([]byte, error)
- func (r *ValidatorRegistrationRunner) GetBaseRunner() *BaseRunner
- func (r *ValidatorRegistrationRunner) GetBeaconNode() specssv.BeaconNode
- func (r *ValidatorRegistrationRunner) GetNetwork() specssv.Network
- func (r *ValidatorRegistrationRunner) GetRoot() ([32]byte, error)
- func (r *ValidatorRegistrationRunner) GetShare() *spectypes.Share
- func (r *ValidatorRegistrationRunner) GetSigner() spectypes.KeyManager
- func (r *ValidatorRegistrationRunner) GetState() *State
- func (r *ValidatorRegistrationRunner) GetValCheckF() qbft.ProposedValueCheckF
- func (r *ValidatorRegistrationRunner) HasRunningDuty() bool
- func (r *ValidatorRegistrationRunner) ProcessConsensus(logger *zap.Logger, signedMsg *qbft.SignedMessage) error
- func (r *ValidatorRegistrationRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *ValidatorRegistrationRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
- func (r *ValidatorRegistrationRunner) StartNewDuty(logger *zap.Logger, duty *spectypes.Duty) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatorRunner ¶
type AggregatorRunner struct { BaseRunner *BaseRunner // contains filtered or unexported fields }
func (*AggregatorRunner) Decode ¶
func (r *AggregatorRunner) Decode(data []byte) error
Decode returns error if decoding failed
func (*AggregatorRunner) Encode ¶
func (r *AggregatorRunner) Encode() ([]byte, error)
Encode returns the encoded struct in bytes or error
func (*AggregatorRunner) GetBaseRunner ¶
func (r *AggregatorRunner) GetBaseRunner() *BaseRunner
func (*AggregatorRunner) GetBeaconNode ¶
func (r *AggregatorRunner) GetBeaconNode() specssv.BeaconNode
func (*AggregatorRunner) GetNetwork ¶
func (r *AggregatorRunner) GetNetwork() specssv.Network
func (*AggregatorRunner) GetRoot ¶
func (r *AggregatorRunner) GetRoot() ([32]byte, error)
GetRoot returns the root used for signing and verification GetRoot returns the root used for signing and verification
func (*AggregatorRunner) GetShare ¶
func (r *AggregatorRunner) GetShare() *spectypes.Share
func (*AggregatorRunner) GetSigner ¶
func (r *AggregatorRunner) GetSigner() spectypes.KeyManager
func (*AggregatorRunner) GetState ¶
func (r *AggregatorRunner) GetState() *State
func (*AggregatorRunner) GetValCheckF ¶
func (r *AggregatorRunner) GetValCheckF() specqbft.ProposedValueCheckF
func (*AggregatorRunner) HasRunningDuty ¶
func (r *AggregatorRunner) HasRunningDuty() bool
HasRunningDuty returns true if a duty is already running (StartNewDuty called and returned nil)
func (*AggregatorRunner) ProcessConsensus ¶
func (r *AggregatorRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
func (*AggregatorRunner) ProcessPostConsensus ¶
func (r *AggregatorRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*AggregatorRunner) ProcessPreConsensus ¶
func (r *AggregatorRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*AggregatorRunner) StartNewDuty ¶
type AttesterRunner ¶
type AttesterRunner struct { BaseRunner *BaseRunner // contains filtered or unexported fields }
func (*AttesterRunner) Decode ¶
func (r *AttesterRunner) Decode(data []byte) error
Decode returns error if decoding failed
func (*AttesterRunner) Encode ¶
func (r *AttesterRunner) Encode() ([]byte, error)
Encode returns the encoded struct in bytes or error
func (*AttesterRunner) GetBaseRunner ¶
func (r *AttesterRunner) GetBaseRunner() *BaseRunner
func (*AttesterRunner) GetBeaconNode ¶
func (r *AttesterRunner) GetBeaconNode() specssv.BeaconNode
func (*AttesterRunner) GetNetwork ¶
func (r *AttesterRunner) GetNetwork() specssv.Network
func (*AttesterRunner) GetRoot ¶
func (r *AttesterRunner) GetRoot() ([32]byte, error)
GetRoot returns the root used for signing and verification
func (*AttesterRunner) GetShare ¶
func (r *AttesterRunner) GetShare() *spectypes.Share
func (*AttesterRunner) GetSigner ¶
func (r *AttesterRunner) GetSigner() spectypes.KeyManager
func (*AttesterRunner) GetState ¶
func (r *AttesterRunner) GetState() *State
func (*AttesterRunner) GetValCheckF ¶
func (r *AttesterRunner) GetValCheckF() specqbft.ProposedValueCheckF
func (*AttesterRunner) HasRunningDuty ¶
func (r *AttesterRunner) HasRunningDuty() bool
HasRunningDuty returns true if a duty is already running (StartNewDuty called and returned nil)
func (*AttesterRunner) ProcessConsensus ¶
func (r *AttesterRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
func (*AttesterRunner) ProcessPostConsensus ¶
func (r *AttesterRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*AttesterRunner) ProcessPreConsensus ¶
func (r *AttesterRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*AttesterRunner) StartNewDuty ¶
type BaseRunner ¶
type BaseRunner struct { State *State QBFTController *controller.Controller BeaconNetwork spectypes.BeaconNetwork BeaconRoleType spectypes.BeaconRole // implementation vars TimeoutF TimeoutF `json:"-"` // contains filtered or unexported fields }
func NewBaseRunner ¶
func NewBaseRunner( state *State, share *spectypes.Share, controller *controller.Controller, beaconNetwork spectypes.BeaconNetwork, beaconRoleType spectypes.BeaconRole, highestDecidedSlot spec.Slot, ) *BaseRunner
func (*BaseRunner) SetHighestDecidedSlot ¶ added in v1.1.0
func (b *BaseRunner) SetHighestDecidedSlot(slot spec.Slot)
SetHighestDecidedSlot set highestDecidedSlot for base runner
func (*BaseRunner) ValidatePostConsensusMsg ¶
func (b *BaseRunner) ValidatePostConsensusMsg(runner Runner, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*BaseRunner) ValidatePreConsensusMsg ¶
func (b *BaseRunner) ValidatePreConsensusMsg(runner Runner, signedMsg *spectypes.SignedPartialSignatureMessage) error
type DutyRunners ¶
type DutyRunners map[spectypes.BeaconRole]Runner
DutyRunners is a map of duty runners mapped by msg id hex.
func (DutyRunners) DutyRunnerForMsgID ¶
func (ci DutyRunners) DutyRunnerForMsgID(msgID spectypes.MessageID) Runner
DutyRunnerForMsgID returns a Runner from the provided msg ID, or nil if not found
type Getters ¶
type Getters interface { GetBaseRunner() *BaseRunner GetBeaconNode() specssv.BeaconNode GetValCheckF() specqbft.ProposedValueCheckF GetSigner() spectypes.KeyManager GetNetwork() specssv.Network }
type ProposerRunner ¶
type ProposerRunner struct { BaseRunner *BaseRunner // ProducesBlindedBlocks is true when the runner will only produce blinded blocks ProducesBlindedBlocks bool // contains filtered or unexported fields }
func (*ProposerRunner) Decode ¶
func (r *ProposerRunner) Decode(data []byte) error
Decode returns error if decoding failed
func (*ProposerRunner) Encode ¶
func (r *ProposerRunner) Encode() ([]byte, error)
Encode returns the encoded struct in bytes or error
func (*ProposerRunner) GetBaseRunner ¶
func (r *ProposerRunner) GetBaseRunner() *BaseRunner
func (*ProposerRunner) GetBeaconNode ¶
func (r *ProposerRunner) GetBeaconNode() specssv.BeaconNode
func (*ProposerRunner) GetNetwork ¶
func (r *ProposerRunner) GetNetwork() specssv.Network
func (*ProposerRunner) GetRoot ¶
func (r *ProposerRunner) GetRoot() ([32]byte, error)
GetRoot returns the root used for signing and verification
func (*ProposerRunner) GetShare ¶
func (r *ProposerRunner) GetShare() *spectypes.Share
func (*ProposerRunner) GetSigner ¶
func (r *ProposerRunner) GetSigner() spectypes.KeyManager
func (*ProposerRunner) GetState ¶
func (r *ProposerRunner) GetState() *State
func (*ProposerRunner) GetValCheckF ¶
func (r *ProposerRunner) GetValCheckF() specqbft.ProposedValueCheckF
func (*ProposerRunner) HasRunningDuty ¶
func (r *ProposerRunner) HasRunningDuty() bool
HasRunningDuty returns true if a duty is already running (StartNewDuty called and returned nil)
func (*ProposerRunner) ProcessConsensus ¶
func (r *ProposerRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
func (*ProposerRunner) ProcessPostConsensus ¶
func (r *ProposerRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*ProposerRunner) ProcessPreConsensus ¶
func (r *ProposerRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*ProposerRunner) StartNewDuty ¶
type Runner ¶
type Runner interface { spectypes.Encoder spectypes.Root Getters // StartNewDuty starts a new duty for the runner, returns error if can't StartNewDuty(logger *zap.Logger, duty *spectypes.Duty) error // HasRunningDuty returns true if it has a running duty HasRunningDuty() bool // ProcessPreConsensus processes all pre-consensus msgs, returns error if can't process ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error // ProcessConsensus processes all consensus msgs, returns error if can't process ProcessConsensus(logger *zap.Logger, msg *specqbft.SignedMessage) error // ProcessPostConsensus processes all post-consensus msgs, returns error if can't process ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error // contains filtered or unexported methods }
func NewAggregatorRunner ¶
func NewAggregatorRunner( beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, qbftController *controller.Controller, beacon specssv.BeaconNode, network specssv.Network, signer spectypes.KeyManager, valCheck specqbft.ProposedValueCheckF, highestDecidedSlot phase0.Slot, ) Runner
func NewAttesterRunnner ¶
func NewAttesterRunnner( beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, qbftController *controller.Controller, beacon specssv.BeaconNode, network specssv.Network, signer spectypes.KeyManager, valCheck specqbft.ProposedValueCheckF, highestDecidedSlot phase0.Slot, ) Runner
func NewProposerRunner ¶
func NewProposerRunner( beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, qbftController *controller.Controller, beacon specssv.BeaconNode, network specssv.Network, signer spectypes.KeyManager, valCheck specqbft.ProposedValueCheckF, highestDecidedSlot phase0.Slot, ) Runner
func NewSyncCommitteeAggregatorRunner ¶
func NewSyncCommitteeAggregatorRunner( beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, qbftController *controller.Controller, beacon specssv.BeaconNode, network specssv.Network, signer spectypes.KeyManager, valCheck specqbft.ProposedValueCheckF, highestDecidedSlot phase0.Slot, ) Runner
func NewSyncCommitteeRunner ¶
func NewSyncCommitteeRunner( beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, qbftController *controller.Controller, beacon specssv.BeaconNode, network specssv.Network, signer spectypes.KeyManager, valCheck specqbft.ProposedValueCheckF, highestDecidedSlot phase0.Slot, ) Runner
func NewValidatorRegistrationRunner ¶
func NewValidatorRegistrationRunner( beaconNetwork spectypes.BeaconNetwork, share *spectypes.Share, qbftController *controller.Controller, beacon specssv.BeaconNode, network specssv.Network, signer spectypes.KeyManager, ) Runner
type State ¶
type State struct { PreConsensusContainer *specssv.PartialSigContainer PostConsensusContainer *specssv.PartialSigContainer RunningInstance *instance.Instance DecidedValue *spectypes.ConsensusData // CurrentDuty is the duty the node pulled locally from the beacon node, might be different from decided duty StartingDuty *spectypes.Duty // flags Finished bool // Finished marked true when there is a full successful cycle (pre, consensus and post) with quorum }
State holds all the relevant progress the duty execution progress
func (*State) ReconstructBeaconSig ¶
func (pcs *State) ReconstructBeaconSig(container *specssv.PartialSigContainer, root [32]byte, validatorPubKey []byte) ([]byte, error)
ReconstructBeaconSig aggregates collected partial beacon sigs
type SyncCommitteeAggregatorRunner ¶
type SyncCommitteeAggregatorRunner struct { BaseRunner *BaseRunner // contains filtered or unexported fields }
func (*SyncCommitteeAggregatorRunner) Decode ¶
func (r *SyncCommitteeAggregatorRunner) Decode(data []byte) error
Decode returns error if decoding failed
func (*SyncCommitteeAggregatorRunner) Encode ¶
func (r *SyncCommitteeAggregatorRunner) Encode() ([]byte, error)
Encode returns the encoded struct in bytes or error
func (*SyncCommitteeAggregatorRunner) GetBaseRunner ¶
func (r *SyncCommitteeAggregatorRunner) GetBaseRunner() *BaseRunner
func (*SyncCommitteeAggregatorRunner) GetBeaconNode ¶
func (r *SyncCommitteeAggregatorRunner) GetBeaconNode() specssv.BeaconNode
func (*SyncCommitteeAggregatorRunner) GetNetwork ¶
func (r *SyncCommitteeAggregatorRunner) GetNetwork() specssv.Network
func (*SyncCommitteeAggregatorRunner) GetRoot ¶
func (r *SyncCommitteeAggregatorRunner) GetRoot() ([32]byte, error)
GetRoot returns the root used for signing and verification
func (*SyncCommitteeAggregatorRunner) GetShare ¶
func (r *SyncCommitteeAggregatorRunner) GetShare() *spectypes.Share
func (*SyncCommitteeAggregatorRunner) GetSigner ¶
func (r *SyncCommitteeAggregatorRunner) GetSigner() spectypes.KeyManager
func (*SyncCommitteeAggregatorRunner) GetState ¶
func (r *SyncCommitteeAggregatorRunner) GetState() *State
func (*SyncCommitteeAggregatorRunner) GetValCheckF ¶
func (r *SyncCommitteeAggregatorRunner) GetValCheckF() specqbft.ProposedValueCheckF
func (*SyncCommitteeAggregatorRunner) HasRunningDuty ¶
func (r *SyncCommitteeAggregatorRunner) HasRunningDuty() bool
HasRunningDuty returns true if a duty is already running (StartNewDuty called and returned nil)
func (*SyncCommitteeAggregatorRunner) ProcessConsensus ¶
func (r *SyncCommitteeAggregatorRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
func (*SyncCommitteeAggregatorRunner) ProcessPostConsensus ¶
func (r *SyncCommitteeAggregatorRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*SyncCommitteeAggregatorRunner) ProcessPreConsensus ¶
func (r *SyncCommitteeAggregatorRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*SyncCommitteeAggregatorRunner) StartNewDuty ¶
type SyncCommitteeRunner ¶
type SyncCommitteeRunner struct { BaseRunner *BaseRunner // contains filtered or unexported fields }
func (*SyncCommitteeRunner) Decode ¶
func (r *SyncCommitteeRunner) Decode(data []byte) error
Decode returns error if decoding failed
func (*SyncCommitteeRunner) Encode ¶
func (r *SyncCommitteeRunner) Encode() ([]byte, error)
Encode returns the encoded struct in bytes or error
func (*SyncCommitteeRunner) GetBaseRunner ¶
func (r *SyncCommitteeRunner) GetBaseRunner() *BaseRunner
func (*SyncCommitteeRunner) GetBeaconNode ¶
func (r *SyncCommitteeRunner) GetBeaconNode() specssv.BeaconNode
func (*SyncCommitteeRunner) GetNetwork ¶
func (r *SyncCommitteeRunner) GetNetwork() specssv.Network
func (*SyncCommitteeRunner) GetRoot ¶
func (r *SyncCommitteeRunner) GetRoot() ([32]byte, error)
GetRoot returns the root used for signing and verification
func (*SyncCommitteeRunner) GetShare ¶
func (r *SyncCommitteeRunner) GetShare() *spectypes.Share
func (*SyncCommitteeRunner) GetSigner ¶
func (r *SyncCommitteeRunner) GetSigner() spectypes.KeyManager
func (*SyncCommitteeRunner) GetState ¶
func (r *SyncCommitteeRunner) GetState() *State
func (*SyncCommitteeRunner) GetValCheckF ¶
func (r *SyncCommitteeRunner) GetValCheckF() specqbft.ProposedValueCheckF
func (*SyncCommitteeRunner) HasRunningDuty ¶
func (r *SyncCommitteeRunner) HasRunningDuty() bool
HasRunningDuty returns true if a duty is already running (StartNewDuty called and returned nil)
func (*SyncCommitteeRunner) ProcessConsensus ¶
func (r *SyncCommitteeRunner) ProcessConsensus(logger *zap.Logger, signedMsg *specqbft.SignedMessage) error
func (*SyncCommitteeRunner) ProcessPostConsensus ¶
func (r *SyncCommitteeRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*SyncCommitteeRunner) ProcessPreConsensus ¶
func (r *SyncCommitteeRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*SyncCommitteeRunner) StartNewDuty ¶
type ValidatorRegistrationRunner ¶
type ValidatorRegistrationRunner struct { BaseRunner *BaseRunner // contains filtered or unexported fields }
func (*ValidatorRegistrationRunner) Decode ¶
func (r *ValidatorRegistrationRunner) Decode(data []byte) error
Decode returns error if decoding failed
func (*ValidatorRegistrationRunner) Encode ¶
func (r *ValidatorRegistrationRunner) Encode() ([]byte, error)
Encode returns the encoded struct in bytes or error
func (*ValidatorRegistrationRunner) GetBaseRunner ¶
func (r *ValidatorRegistrationRunner) GetBaseRunner() *BaseRunner
func (*ValidatorRegistrationRunner) GetBeaconNode ¶
func (r *ValidatorRegistrationRunner) GetBeaconNode() specssv.BeaconNode
func (*ValidatorRegistrationRunner) GetNetwork ¶
func (r *ValidatorRegistrationRunner) GetNetwork() specssv.Network
func (*ValidatorRegistrationRunner) GetRoot ¶
func (r *ValidatorRegistrationRunner) GetRoot() ([32]byte, error)
GetRoot returns the root used for signing and verification
func (*ValidatorRegistrationRunner) GetShare ¶
func (r *ValidatorRegistrationRunner) GetShare() *spectypes.Share
func (*ValidatorRegistrationRunner) GetSigner ¶
func (r *ValidatorRegistrationRunner) GetSigner() spectypes.KeyManager
func (*ValidatorRegistrationRunner) GetState ¶
func (r *ValidatorRegistrationRunner) GetState() *State
func (*ValidatorRegistrationRunner) GetValCheckF ¶
func (r *ValidatorRegistrationRunner) GetValCheckF() qbft.ProposedValueCheckF
func (*ValidatorRegistrationRunner) HasRunningDuty ¶
func (r *ValidatorRegistrationRunner) HasRunningDuty() bool
HasRunningDuty returns true if a duty is already running (StartNewDuty called and returned nil)
func (*ValidatorRegistrationRunner) ProcessConsensus ¶
func (r *ValidatorRegistrationRunner) ProcessConsensus(logger *zap.Logger, signedMsg *qbft.SignedMessage) error
func (*ValidatorRegistrationRunner) ProcessPostConsensus ¶
func (r *ValidatorRegistrationRunner) ProcessPostConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error
func (*ValidatorRegistrationRunner) ProcessPreConsensus ¶
func (r *ValidatorRegistrationRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spectypes.SignedPartialSignatureMessage) error