NASHUA, N.H. — A New Hampshire judge has scheduled a trial in August 2018 in a case challenging a new law that requires voters who move to the state within 30 days of an election to provide proof that they intend to stay.

The New Hampshire Democratic Party and the League of Women Voters say the law presents confusing, unnecessary and intimidating hurdles to voting. They say it violates the state constitution. Lawyers for the state say the arguments have no merit.

A judge upheld the law this year just in time for a special election, but scheduled a hearing for April and set up a timetable for both sides to further explain their case.