Skip to content

Instantly share code, notes, and snippets.

@ruescasd
Created April 30, 2025 11:04
Show Gist options
  • Save ruescasd/31842298c6eff530bc2153a8f8a7cf70 to your computer and use it in GitHub Desktop.
Save ruescasd/31842298c6eff530bc2153a8f8a7cf70 to your computer and use it in GitHub Desktop.
Voter casts:
b = (g^r, m*h^r)
pc_1 = g^c1*h^r_c1
EA computes:
pc_2 = g^c2*h^r_c2
Voter, EA post
(b, E(pc_1), E(pc_2))
In person:
Voter reveals:
c_1, r_c1
EA reveals to voter:
c_2, r_c2
Voter submits
c_1 + c_2, r_c1 + r_c2
eg in paper.
Tally:
pc = E(pc_1) * E(pc_2)
Shuffle in parallel b, pc
(b, pc)
Discard b where Dec(pc) = g^(c_1 + c_2) * h^(r_c1 + r_c2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment