Skip to content

Instantly share code, notes, and snippets.

@fnielsen
Created July 16, 2013 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fnielsen/6007683 to your computer and use it in GitHub Desktop.
Save fnielsen/6007683 to your computer and use it in GitHub Desktop.
Estonia Python e-election system.
#!/usr/bin/python2.7
# -*- coding: UTF8 -*-
"""
Copyright: Eesti Vabariigi Valimiskomisjon
(Estonian National Electoral Committee), www.vvk.ee
Written in 2004-2013 by Cybernetica AS, www.cyber.ee
This work is licensed under the Creative Commons
Attribution-NonCommercial-NoDerivs 3.0 Unported License.
To view a copy of this license, visit
http://creativecommons.org/licenses/by-nc-nd/3.0/.
"""
def analyze(ik, vote, votebox):
# TODO: implement security checks
# such as verifying the correct size
# of the encrypted vote
return []
# The below code is illegal due to the 'nd' of the cc:
def test_analyze():
assert analyze(1, 2, 3) == []
assert analyze(3, 2, 1) == []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment