ENCRYPTED VOTING WITH MIDNIGHT
Cast your vote.
Check the results.
Create an election, cast encrypted votes and reveal the total with two trustees. Save your receipt so you can check your ballot against the shared record.
Encrypted votes.
A shared result.
No wallet or funds needed.
READY TO TRY IT?
An election on your device.
Loading Midnight’s encryption tools…
You play the voters and all three trustees in this tab. Everything stays on this device; no votes are sent to a blockchain. Refreshing clears the election, so save any receipts and results you want to keep.
How the demo works (opens in a new tab)01 / SET UP ELECTION
Your electionSet up your election.
Give your election a name, add 2–5 choices and choose how many demo voters can take part.
Your election is ready
This code identifies the election settings and keys. Share it with the public record so others can check they have the same election.
02 / CAST A BALLOT
Encrypted voteVote / Cast a ballot.
Choose a demo voter, select one option and cast the vote. Each voter can vote once. Your receipt lets you find the encrypted ballot in the election record.
Create an election to start voting.
You can try each demo voter in turn. Save the receipt after each vote, before switching to another voter. The shared record does not show which voter chose which option.
YOUR VOTING RECEIPT
Save your receipt.
Use this receipt to find your encrypted ballot in the shared election record.
Receipt ID
The receipt identifies your ballot and election without revealing your choice. It records a vote in this browser demo, not a blockchain transaction.
03 / REVEAL RESULTS
2 of 3 trusteesReveal the combined results.
Once voting closes, two trustees combine their keys to reveal the totals. Individual choices are not shown.
Finish voting
If you chose to close voting yourself, use this button when everyone has voted. A timed election closes automatically. No more votes can be added after closing.
Choose two trustees · 0 of 2 selected
In this demo, your browser holds all three key shares. The app checks the two selected shares before showing the totals.
ELECTION RESULTS
The results
These are the results of this browser election. You can check the public record in the next step.
04 / VERIFY ELECTION
Public data onlyVerify election.
Every voter can check the shared record and look up their own receipt. Download the election record, or upload one someone has shared with you. You do not need a voter or trustee key to check it.
Check a shared election record
A successful check means the ballots and totals in this file agree with each other. It does not prove who voted, that the file is genuine or that the election was fair. Compare its fingerprint with a source you trust.
Check your own receipt
Create an election or check an uploaded record first.
Looks up an encrypted ballot in the selected election record. An ID alone does not prove who cast it or whether the record is authentic. Save the full receipt too: it includes the election details.
Choose the JSON receipt downloaded after voting, or a text file containing its QR code text.
SUPPORT DEVELOPMENT
Buy me a coffee.
Enjoying Midnight Ballot Lab? You can support its development with a NIGHT or ADA tip on Cardano. Scan the QR code or copy the address below. Thank you for helping me keep building.
Tips are optional. The demo is free to use.