State law, not federal, regulates most aspects of the elections, including primaries, the eligibility of voters (beyond the basic constitutional definition), the running of each state's electoral college, and the running of state and local elections. The United States Constitution defines (to a basic extent) how the elections of federal officials are conducted in each state, in Article One and Article Two and various amendments.