attestationaggregator

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 3 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 {
	// Slot is the slot of the attestation aggregation; required for obtaining the aggregate.
	Slot spec.Slot
	// Attestation data root is the root of the attestation to be aggregated; required for obtaining the aggregate.
	AttestationDataRoot spec.Root
	// ValidatorIndex is the index of the validator carrying out the aggregation; reuqired for submitting the aggregate.
	ValidatorIndex spec.ValidatorIndex
	// SlotSignature is the signature of the slot by the validator carrying out the aggregation; reuqired for submitting the aggregate.
	SlotSignature spec.BLSSignature
	// Attestation is the attestation from the validator that is part of the related to the aggregate.
	// Required for Prysm non-spec GRPC method.
	Attestation *spec.Attestation
	// Account is the account carrying out the aggregation.
	// Required for Prysm non-spec GRPC method.
	Account e2wtypes.Account
}

Duty contains information about an attestation aggregation duty.

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 spec.ValidatorIndex, committeeIndex spec.CommitteeIndex, slot spec.Slot, committeeSize uint64) (bool, spec.BLSSignature, 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