(CNN) Pennsylvania has enacted a massive overhaul of its election law, set to go into effect before the 2020 presidential contest.

The new legislation, which Democratic Gov. Tom Wolf signed into law on Thursday, allows for earlier mail-in voting, the elimination of straight-party-ticket voting and authorizes funding to subsidize the purchase of new voting machines capable of keeping anonymous paper records, among other reforms.

In a statement, the governor's office said the overhaul constituted the most significant change to election law in more than 80 years.

"This is the biggest change to our elections in generations and will strengthen our democracy by removing barriers to the voting booth and encouraging more people to vote," Wolf said.

Act 77 of 2019 makes Pennsylvania a national leader with voter-friendly election reforms.



I applaud all of the legislators and stakeholders who helped make this happen.



Learn more: https://t.co/6M2WgMrl1T. pic.twitter.com/AbA9SAVVhF — Governor Tom Wolf (@GovernorTomWolf) October 31, 2019

The state, which President Donald Trump won by fewer than 45,000 votes in 2016, is widely expected to be a key battleground state in the 2020 election.

Read More