Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregate ¶
func Aggregate(cs []*v2.SyncCommitteeContribution) ([]*v2.SyncCommitteeContribution, error)
Aggregate aggregates sync contributions. The minimal number of sync contributions is returned. Aggregation occurs in-place i.e. contents of input array will be modified. Should you need to preserve input sync contributions, clone them before aggregating.
Types ¶
type SyncContributionAggregationStrategy ¶
type SyncContributionAggregationStrategy string
SyncContributionAggregationStrategy defines SyncContribution aggregation strategy.
const ( // NaiveAggregation is an aggregation strategy without any optimizations. NaiveAggregation SyncContributionAggregationStrategy = "naive" // MaxCoverAggregation is a strategy based on Maximum Coverage greedy algorithm. MaxCoverAggregation SyncContributionAggregationStrategy = "max_cover" )
Click to show internal directories.
Click to hide internal directories.