N1 is the first one-time nonce sent to the voter’s credential email. Before you can submit a ballot you must validate N1 with this endpoint. The commissioner service checks whether the code is known and, if it is, the server stores it in the caller’s session automatically — you do not need to include N1 again when you callDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/back-end/llms.txt
Use this file to discover all available pages before exploring further.
submit_vote. The session window is 10 minutes.
Request
POST /voters/check_n1
Body
The N1 nonce from the voter’s credential email. This value is checked against the commissioner’s records.
Response
true if the N1 code was recognised by the commissioner and has been stored in the session for the upcoming vote submission. false if the code is unknown or invalid.HTTP status codes
| Code | Meaning |
|---|---|
200 | Check completed. Inspect is_N1_exist to determine whether the code was accepted. |
500 | Unexpected error communicating with the commissioner service. |