Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duty ¶
type Duty struct {
// contains filtered or unexported fields
}
Duty contains information about an attestation aggregation duty.
func NewDuty ¶
func NewDuty(ctx context.Context, validatorIndex uint64, validatorPubKey []byte, attestation *spec.Attestation, slotSignature []byte) (*Duty, error)
NewDuty creates a new attestation aggregation duty.
func (*Duty) Attestation ¶
func (d *Duty) Attestation() *spec.Attestation
Attestation provides the attestation of the validator carrying out the attestation aggregation.
func (*Duty) CommitteeIndex ¶
CommitteeIndex provides the committee index for the attestaton aggregation.
func (*Duty) SlotSignature ¶
SlotSignature provides the slot signature of the validator carrying out the attestation aggregation.
func (*Duty) ValidatorIndex ¶
ValidatorIndex provides the index of the validator carrying out the attestation aggregation.
func (*Duty) ValidatorPubKey ¶
ValidatorPubKey provides the public key of the validator carrying out the attestation aggregation.
type IsAggregatorProvider ¶
type IsAggregatorProvider interface { // IsAggregator returns true if the given validator is an aggregator for the given committee at the given slot. IsAggregator(ctx context.Context, validatorIndex uint64, committeeIndex uint64, slot uint64, committeeSize uint64) (bool, []byte, error) }
IsAggregatorProvider provides information about if a validator is an aggregator.