How verification works
Each Leeway Ballot election is a smart contract on BSC Testnet. The rules and the count run in that contract, and anyone can read it.
What goes on the public record
- The election itself: its options and its timeline.
- A Merkle root of the voter list. The list is published as hashes, so anyone can check that it matches the root, but emails are never published.
- Each vote as a commitment while voting is open. After voting closes, each revealed vote and the count.
Commit-reveal: how votes are sealed
While voting is open, the voter's browser combines their choice with a random secret and records only the hash of the two (the commitment). Nobody can work out the choice from the commitment.
After voting closes, the voter reveals the choice and the secret. The contract checks that they match the commitment and adds the vote to the count. A vote that is not revealed is not counted.
Automatic reveal and timelock sealing are not switched on. The timelock code has not been reviewed.
Voting keys and fees
When a member signs in with their email, a wallet (we call it a voting key) is created for them. It signs their vote. Members can export it from their account page.
Fee-free voting through the LeewayEdu relayer is not switched on yet.
Each voting address can commit once.
What anyone can check
- On each election's verify page: the result, the number of commitments and reveals, and integrity checks read directly from the chain.
- That a receipt code was recorded in the election, and whether that vote has been revealed and counted.
- Whether a voting address is on the published voter list.
- Before voting opens, the voter list goes through a 5-day dispute window, when anyone can check it and raise a dispute for the organiser to review.
Find the verify page from any election's page on Elections.
Limits
- Votes are not anonymous. LeewayEdu stores which email belongs to which voting address, so it can send claim links and help members.
- A revealed vote is public next to its voting address. Anyone who knows that an address is yours can see your vote.
- The organisation decides who is on the voter list. Verification shows the list did not change after it was published. Whether it is the right list is for members to check during the dispute window.
- The contracts and app have not finished their independent security review.