Evoting supports public verifiability: once the election ends, all cast ballots are published as a list of (N2, vote) pairs. Any person who holds an N2 code can check whether the corresponding ballot appears in that list and whether its cryptographic signature is intact. This page explains how to perform that check.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/front-end/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Vote verification is only available after the election moves to the
vote_ended phase. If voting is still in progress, the results have not been published yet.- Your N2 code from registration. N2 codes are exactly 12 uppercase letters and numbers (for example,
A1B2C3D4E5F6). - The election to be in the
vote_endedphase.
Steps
Navigate to the verification page
Go to
/results/verify-vote. You will see a form with a single input field.Understanding the response
The API returns aVerifyVoteResponse object:
Status meanings
valid
Your ballot was found in the published results and its cryptographic signature passed verification. Your vote was counted as cast.
invalid_signature
A ballot with your N2 code was found, but the signature check failed. This may indicate that the ballot was tampered with after it was submitted.
invalid_n2
The N2 hash in the published record does not match the N2 you provided. The ballot associated with this record may have been forged.
found: false
No ballot with your N2 code appears in the published results. Your vote was not recorded in the final tally.
Response fields
| Field | Type | Description |
|---|---|---|
found | boolean | Whether an entry for your N2 code exists in the published results. |
status | string | null | Cryptographic verification outcome. null when found is false. |
vote | string | null | The candidate recorded against your N2 code, if found. |
message | string | Human-readable description of the outcome. |