beaconcommitteesubscriber

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

Overview

Package beaconcommitteesubscriber is a package that manages subscriptions for beacon committees.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Subscribe subscribes to beacon committees for a given epoch.
	// It returns a map of slot => committee => subscription info.
	Subscribe(ctx context.Context, epoch uint64, accounts []accountmanager.ValidatingAccount) (map[uint64]map[uint64]*Subscription, error)
}

Service is the beacon committee subscriber service.

type Subscription

type Subscription struct {
	ValidatorIndex  uint64
	ValidatorPubKey []byte
	CommitteeSize   uint64
	Signature       []byte
	Aggregate       bool
}

Subscription holds details of the committees to which we are subscribing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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