kth-tcs / trustfull-demonstrator

Code for the demonstrator of the Trustfull project based on the e-voting system verificatum
1 stars 4 forks source link

fix: fix restart of election #25

Closed algomaster99 closed 2 years ago

algomaster99 commented 2 years ago

Fix #24

Resetting an election just using the endpoint was not possible because you need to delete the session data of the mixnet. I configured the app such that when you run the start command, it initialised the whole state of the application and you can start voting in a new election. In more precise terms, the election data in all mixnet servers are deleted and created again. Afterwards, they jointly computer a public key and post it to the web app.

/reset is no longer an endpoint because of the aforementioned reason, but it is indeed a method in the app which is called whenever the app is started again.