Key takeaways
- Ballots are stored in sealed app state that operators can't read.
- Your code enforces one ballot per member, the deadline, and when results become visible.
- Each voter gets a receipt from an attested key, and the rules are in a signed release nobody can change mid-vote.
How are ballots kept secret?
A ballot is a value in the app's state, sealed with AES-256-GCM and readable only by the app's code inside attested nodes. A PerUser collection fits naturally: one value per account, written only by that account. The operator sees counts and status, never the ballots.
How are the rules enforced?
- Who may vote: organization roles and teams decide eligibility, and invites admit new voters.
- One ballot each: the voter's identity comes from
env::caller(), never from an argument. - Confirmation: mark the cast method
#[app::confirm]to require a passkey with PIN or biometric. - Deadline: compare against
env::time_now(), which every replica agrees on, and close the vote with a timer. - No early results: the tally view refuses to answer until the deadline has passed.
Why can't anyone change the rules mid-vote?
The rules are code in a signed release. Any new version reaches the app's data only after the organization's approver consents on a node-served page, with a passkey. Pin the release for the vote's duration and nobody, operator included, can swap in a version that leaks or alters ballots.
Each cast returns a receipt signed by an attested key, which the voter can keep as proof their ballot was accepted.
What doesn't it solve?
Calimero Network protects ballots from operators and enforces your rules. It doesn't verify voters' real-world identity beyond their accounts and passkeys, and it doesn't prevent coercion. It suits organizational votes and polls. Public elections have legal and procedural requirements well beyond any backend.
Frequently asked questions
Can the people running the servers see how someone voted?
No. Ballots are sealed in app state that only the app's code inside attested nodes can read. Operators see counts and status.
How is one person, one vote enforced?
The app takes the voter's identity from env::caller() and stores one ballot per account, for example in a PerUser collection.
Is Calimero Network suitable for public elections?
It's designed for organizational votes and polls. Public elections need identity, coercion resistance and legal processes beyond a backend.
