Skip to content
QORECHAIN
Register

Encrypted Apps

Hanko

Secret ballots that stay secret, even after Q-Day.

Share on X

About

Hanko runs secret votes whose ballots stay sealed even after quantum computers break today's cryptography. Encrypted voting today uses classical crypto: anyone can copy the sealed ballots now and open them on Q-Day, with names attached. Hanko seals every ballot with ML-KEM-1024 in the voter's browser, splits the ballot key 2-of-3 across three keyholders, and signs every action with ML-DSA-87 through QoreX, checked on chain by the pqcVerify precompile. After voting closes, any two keyholders count locally and post signed totals; two matching totals plus "counted + spoiled = voters" finalize the poll. Individual votes are never published. Voters can re-vote (only the latest ballot counts) and check their own ballot was included. Live on qorechain-diana: a whole poll was run from real browsers with two QoreX accounts and finalized on chain; four attack transactions (wrong key, replayed old ballot, ineligible voter, counting before close) were refused by the contract.

How it's made

Contract (Solidity, Foundry, 75 tests, audited in contracts/AUDIT.md): polls, keyholder KEM-key registry, ballots, reshares and tallies. Every action carries an ML-DSA-87 signature verified on chain by the pqcVerify precompile; accounts without a registered PQ key are refused (NoPqKey). Browser (Vite + React + TypeScript, wagmi + RainbowKit with @qorechain/qorex-rainbowkit): AES-GCM ballot, Shamir 2-of-3 key split, each share sealed to a keyholder with ML-KEM-1024 via @qorechain/qoreseal; signing through QoreX signArbitrary; chain reads with @qorechain/sdk and @qorechain/evm. Gasless relay (Vercel serverless) submits signed actions and pays gas; it can't change them because the chain checks the PQ signature. Hard parts: mapping the QoreX native identity to its EVM address for on-chain checks; a reshare round so any two keyholders can count without revealing votes; finalizing only when two signed totals match and counted + spoiled = voters; the public RPC's log-range limit (parallel 9k-block chunks). Limits (THREAT_MODEL.md): two colluding keyholders could read votes; testnet only; the relay can delay but not alter.

Timeline

HankoEncrypted Apps

Pushed 1 commit to main

  • 9995c9f Numerals: designed form controls and Fraunces figures in the Sealing Room · Techkeyy
HankoEncrypted Apps

Pushed 34 commits to main

  • cc1da72 README: Built on QoreChain badge · Techkeyy
  • aa4ad39 16:9 cover image · Techkeyy
  • 8e955f8 README: demo video link · Techkeyy
  • 81fbbda Create poll: custom close time and counting window, helper text, short-window warning, deadline summary · Techkeyy
  • 3116f80 director: film v3 and explorer link fix · Techkeyy

and 29 more commits

HankoEncrypted Apps

Earned a Ship Weeks badge.

HankoEncrypted Apps

Earned a Ship Weeks badge.

HankoEncrypted Apps

New project.

Comments and questions

  • No comments yet.