Skip to content

Census Guide

nicolas le douarec edited this page Jun 29, 2016 · 10 revisions

login to your code.vote server with your userid and password

voting keys generation

If you have a list of voters in a file F with N lines, one voter identifier per line, run:

belenios-tool credgen --uuid $UUID --group $GROUP --file F

otherwise to generate N anonymous voting keys

belenios-tool credgen --uuid $UUID --group $GROUP --count N

It will generate three files with N lines:

  • TTTTTT.privcreds: each line of this file contains the voter identifier and a private voting key. Keep this file secret, and secure if you want to be able to re-send a voting key later (e.g. if a voter lost or did not receive it).

  • TTTTTT.pubcreds: each line of this file contains the public voting keys.

  • TTTTTT.hashcreds: each line of this file contains, for each identifier in TTTTTT.privcreds, the hash of the corresponding public key.

  1. publish TTTTTT.pubcredsas public_creds.txt to the bulletin board

     cat *.pubcreds >> $DIR/public_creds.txt
    
  2. distribute to each voter the private voting key corresponding to her identifier as per TTTTTT.privcreds

  3. keep a copy of TTTTTT.privcreds in a safe place

  4. erase all files with command line

     rm -f *