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 a beacon block attester duty.
func MergeDuties ¶
MergeDuties merges attester duties given by an Ethereum 2 client into vouch's per-slot structure.
func NewDuty ¶
func NewDuty(ctx context.Context, slot uint64, validatorIndices []uint64, committeeIndices []uint64, validatorCommitteeIndices []uint64, committeeLengths map[uint64]uint64) (*Duty, error)
NewDuty creates a new beacon block attester duty.
func (*Duty) CommitteeIndices ¶
CommitteeIndices provides the committee indices for the beacon block attester.
func (*Duty) CommitteeSize ¶
CommitteeSize provides the committee size for a given index.
func (*Duty) ValidatorCommitteeIndices ¶
ValidatorCommitteeIndices provides the indices of validators within committees for the beacon block attester.
func (*Duty) ValidatorIndices ¶
ValidatorIndices provides the validator indices for the beacon block attester.
Click to show internal directories.
Click to hide internal directories.