attestationaggregator

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 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 {
	// Slot is the slot of the attestation aggregation; required for obtaining the aggregate.
	Slot phase0.Slot
	// Attestation data root is the root of the attestation to be aggregated; required for obtaining the aggregate.
	AttestationDataRoot phase0.Root
	// ValidatorIndex is the index of the validator carrying out the aggregation; reuqired for submitting the aggregate.
	ValidatorIndex phase0.ValidatorIndex
	// SlotSignature is the signature of the slot by the validator carrying out the aggregation; reuqired for submitting the aggregate.
	SlotSignature phase0.BLSSignature
}

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 phase0.ValidatorIndex, slot phase0.Slot, committeeSize uint64) (bool, phase0.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