attestationaggregator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (d *Duty) CommitteeIndex() uint64

CommitteeIndex provides the committee index for the attestaton aggregation.

func (*Duty) Slot

func (d *Duty) Slot() uint64

Slot provides the slot for the attestaton aggregation.

func (*Duty) SlotSignature

func (d *Duty) SlotSignature() []byte

SlotSignature provides the slot signature of the validator carrying out the attestation aggregation.

func (*Duty) ValidatorIndex

func (d *Duty) ValidatorIndex() uint64

ValidatorIndex provides the index of the validator carrying out the attestation aggregation.

func (*Duty) ValidatorPubKey

func (d *Duty) ValidatorPubKey() []byte

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.

type Service

type Service interface {
	// Aggregate carries out aggregation for a slot and committee.
	Aggregate(ctx context.Context, details interface{})
}

Service is the attestation aggregation service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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