ElectionGuard: Support for e2e verified elections.
🗳 ElectionGuard Python
This repository is a "reference implementation" of ElectionGuard written in Python 3. This implementation can be used to conduct End-to-End Verifiable Elections as well as privacy-enhanced risk-limiting audits. Components of this library can also be used to construct "Verifiers" to validate the results of an ElectionGuard election.
📁 In This Repository
||Microbenchmarks based on this codebase|
||Documentation for using the library|
||Source code to the ElectionGuard library|
||sample data and generators for testing|
||Type annotations for external libraries|
||Unit tests to exercise this codebase|
||Guidelines for contributing|
||This README file|
||The license for ElectionGuard-Python.|
❓ What Is ElectionGuard?
ElectionGuard is an open source software development kit (SDK) that makes voting more secure, transparent and accessible. The ElectionGuard SDK leverages homomorphic encryption to ensure that votes recorded by electronic systems of any type remain encrypted, secure, and secret. Meanwhile, ElectionGuard also allows verifiable and accurate tallying of ballots by any 3rd party organization without compromising secrecy or security.
Learn More in the ElectionGuard Repository
🦸 How Can I use ElectionGuard?
ElectionGuard supports a variety of use cases. The Primary use case is to generate verifiable end-to-end (E2E) encrypted elections. The Electionguard process can also be used for other use cases such as privacy enhanced risk-limiting audits (RLAs).
- Python 3.8 is <ins>required</ins> to develop this SDK. If developer uses multiple versions of python, pyenv is suggested to assist version management.
- GNU Make is used to simplify the commands and GitHub Actions. This approach is recommended to simplify the command line experience. This is built in for MacOS and Linux. For Windows, setup is simpler with Chocolatey and installing the provided make package. The other Windows option is manually installing make.
- Gmpy2 is used for Arbitrary-precision arithmetic which has its own installation requirements (native C libraries) on Linux and MacOS. ⚠️ Note: This is not required for Windows since the gmpy2 precompiled libraries are provided.
- pipenv is used to configure the python environment. Installation instructions can be found here.
🚀 Quick Start
The unit and integration tests can also be run with make:
A complete end-to-end election example can be run independently by executing:
For more detailed build and run options, see the documentation.
This project encourages community contributions for development, testing, documentation, code review, and performance analysis, etc. For more information on how to contribute, see the contribution guidelines
Code of Conduct
Please report any bugs, feature requests, or enhancements using the GitHub Issue Tracker. Please do not report any security vulnerabilities using the Issue Tracker. Instead, please report them to the Microsoft Security Response Center (MSRC) at https://msrc.microsoft.com/create-report. See the Security Documentation for more information.
Electionguard would love for you to ask questions out in the open using GitHub Issues. If you really want to email the ElectionGuard team, reach out at firstname.lastname@example.org.
This repository is licensed under the MIT License
A huge thank you to those who helped to contribute to this project so far, including:
[Publish and Verify]: https://github.com/microsoft/electionguard-python/blob/main/docs/5_Publish_and_Verify.md)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size electionguard-1.1.5-py3-none-any.whl (115.6 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size electionguard-1.1.5.tar.gz (103.9 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for electionguard-1.1.5-py3-none-any.whl