func ShardCommitteeByShardID(shardID uint64, shardCommittees []ShardAndCommittee) ([]uint32, error) {
	for _, s := range shardCommittees {
		if s.Shard == shardID {
			return s.Committee, nil
		}
	}

	return nil, fmt.Errorf("unable to find committee based on shard: %v", shardID)
}
// ShardCommitteeByShardID gets the shards committee from a list of committees/shards
// in a list.
ShardCommitteeByShardID gets the shards committee from a list of committees/shards
in a list.
// ShardCommitteeByShardID gets the shards committee from a list of committees / shards // in a list .
func ShardCommitteeByShardID(shardID uint64, shardCommittees []ShardAndCommittee) ([]uint32, error) {
	for _, s := range shardCommittees {
		if s.Shard == shardID {
			return s.Committee, nil
		}
	}
	return nil, fmt.Errorf("unable to find committee based on shard: %v", shardID)
}
func ShardCommitteeByShardID ( shardID uint64 , shardCommittees [ ] ShardAndCommittee ) ( [ ] uint32 , error ) { for _ , s := range shardCommittees { if s . Shard == shardID { return s . Committee , nil } } return nil , fmt . Errorf ( " " , shardID ) }
ShardCommitteeByShardID gets the shards committee from a list of committees/shards
in a list.
ShardCommitteeByShardID gets the shards committee from a list of committees / shards in a list .