func (s *State) GetBeaconProposerIndex(slot uint64, c *config.Config) (uint32, error) {
	committees, err := s.GetShardCommitteesAtSlot(slot, c)
	if err != nil {
		return 0, err
	}
	firstCommittee := committees[0].Committee
	return firstCommittee[int(slot)%len(firstCommittee)], nil
}
// GetBeaconProposerIndex gets the validator index of the block proposer at a certain
// slot.
GetBeaconProposerIndex gets the validator index of the block proposer at a certain
slot.
// GetBeaconProposerIndex gets the validator index of the block proposer at a certain // slot .
func (s *State) GetBeaconProposerIndex(slot uint64, c *config.Config) (uint32, error) {
	committees, err := s.GetShardCommitteesAtSlot(slot, c)
	if err != nil {
		return 0, err
	}
	firstCommittee := committees[0].Committee
	return firstCommittee[int(slot)%len(firstCommittee)], nil
}
func ( s * State ) GetBeaconProposerIndex ( slot uint64 , c * config . Config ) ( uint32 , error ) { committees , err := s . GetShardCommitteesAtSlot ( slot , c ) if err != nil { return 0 , err } firstCommittee := committees [ 0 ] . Committee return firstCommittee [ int ( slot ) % len ( firstCommittee ) ] , nil }
GetBeaconProposerIndex gets the validator index of the block proposer at a certain
slot.
GetBeaconProposerIndex gets the validator index of the block proposer at a certain slot .