Imagine if the principa mathmatica was decided upon by democracy.
That hard.
That hard.
Parties would intercept communication, and compromise machines.
Voting machines have to remain secure, despite opponents having physical access to the machine, and currently security doctrine is basically "Once your opponent has physical access, you lose."