Skip to content

Trustee's Guide

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

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

create your trustee keys

  1. Generate a trustee keypair with the command line

     belenios-tool trustee-keygen --group $GROUP
    

It will generate two files, XXXXXXXX.pubkey and XXXXXXXX.privkey, containing respectively the public and the private key.

  1. keep XXXXXXXX.privkey with extreme care

  2. post XXXXXXXX.pubkey on the bulletin board

      cat *.pubkey >> $DIR/public_keys.jsons
    
  3. erase the files on the server with command

      rm -f *
    

When the election is open, you must check that your public key is present in the published public_keys.jsonsof the bulletin board.

Decrypt the results

To compute your decryption share, run:

belenios-tool decrypt --privkey /path/to/privkey > XXXXXXXX_decryption.json

Publish XXXXXXXX_decryption.json to the bulletin board.

Note: be sure to authenticate all your input files when you use your private key!