Created
July 16, 2013 10:48
-
-
Save fnielsen/6007683 to your computer and use it in GitHub Desktop.
Estonia Python e-election system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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