Skip to main content

Microsoft Defending Democracy Program: ElectionGuard Python

🗳 ElectionGuard Python

ElectionGuard Specification 0.95.0 Github Package Action Language grade: Python Total alerts Documentation Status license

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

File/folder Description
docs Documentation for using the library.
src/electionguard ElectionGuard library.
src/electionguard_tools Tools for testing and sample data.
src/electionguard_verifier Verifier to validate the validity of a ballot.
stubs Type annotations for external libraries.
tests Tests to exercise this codebase.
CONTRIBUTING.md Guidelines for contributing.
README.md This README file.
LICENSE The license for ElectionGuard-Python.
data Sample election data.

❓ 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).

💻 Requirements

🚀 Quick Start

Using make, the entire GitHub Action workflow can be run with one command:

make

The unit and integration tests can also be run with make:

make test

A complete end-to-end election example can be run independently by executing:

make test-example

For more detailed build and run options, see the documentation.

📄 Documentation

Overviews:

Sections:

Step-by-Step Process:

  1. Configure Election
  2. Key Ceremony
  3. Encrypt Ballots
  4. Cast and Spoil
  5. Decrypt Tally
  6. Publish and Verify

Contributing

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

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Reporting Issues

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.

Have Questions?

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 electionguard@microsoft.com.

License

This repository is licensed under the MIT License

Thanks! 🎉

A huge thank you to those who helped to contribute to this project so far, including:

Josh Benaloh (Microsoft)

Keith Fung (InfernoRed Technology)

Matt Wilhelm (InfernoRed Technology)

Dan S. Wallach (Rice University)

Release files for electionguard 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for electionguard 1.4.0
File Size Uploaded
electionguard-1.4.0.tar.gz 668.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for electionguard 1.4.0
File Interpreter ABI Platform
electionguard-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / electionguard-1.4.0.tar.gz

Download URL electionguard-1.4.0.tar.gz
Size 668.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8dd7990004f1ed9477be50a3f65ecf5f7b4427bd219b847a065dd899e0abb94c
BLAKE2b-256 checksum
How to use checksums
bdbd74e1d64b9db33ee914709289791d86c82b4d11a72c54562db29314bfeb05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.14 Linux/5.15.0-1020-azure

Release files / electionguard-1.4.0-py3-none-any.whl

Download URL electionguard-1.4.0-py3-none-any.whl
Size 752.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66e7d23b12e4ae4c4b3961266ed037fe0c1dd5e24861f8506bd3dcae317ce260
BLAKE2b-256 checksum
How to use checksums
5d691081a74e3a1c8022bfbb6c3deb9b1faba6c62988d3b5735bcbdc38043b1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.14 Linux/5.15.0-1020-azure

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.15

2 release files

1.1.11

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page