A python module implementing the ElectionGuard specification. This implementation can be used to conduct End-to-End Verifiable Elections as well as privacy-enhanced risk-limiting audits.
Перейти к файлу
Keith Fung 392586832d
🐍. Big Integer and Base Element (#599)
* 🚧. Create BigInteger class

A representation of BigInteger in python to specifically designate what is happening. Left as a str due to the hex representation being the underpinning.

* 🚧. Refactor BaseElement to use BigInteger

- Refactor BaseElement to use BigInteger and fix tests to use value instead of get_value
- Update Tests

* 🚧 Remove now unused Serializable

* 📦 Add dacite to handle dictionary casting

*  Add custom deserialization to avoid pydantic issues

* 🔥 Remove add and subtract functions from big integer

*  Better indicate padding purpose
2022-04-19 10:06:18 -04:00
.github 🚀 Add milestone information to release notes (#485) 2021-10-26 13:52:49 -04:00
.vscode Delete Settings.json (#308) 2021-02-09 13:27:49 -05:00
data Crypto Hash using Sequence Order (#415) 2021-08-19 10:07:33 -04:00
docs 📦 Upgrade Black Linter (#564) 2022-04-05 08:20:37 -04:00
images Update Readme for Beginners (#65) 2020-06-23 13:49:53 -04:00
src 🐍. Big Integer and Base Element (#599) 2022-04-19 10:06:18 -04:00
stubs 📦 Update to mypy 0.910 (#399) 2021-08-03 16:46:53 -04:00
tests 🐍. Big Integer and Base Element (#599) 2022-04-19 10:06:18 -04:00
.gitignore 💻 Add Fetch Sample Data command to MakeFile (#538) 2022-02-09 15:23:35 -05:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-03-10 13:02:38 -07:00
CONTRIBUTING.md Update Contributing and Templates 2021-09-20 15:36:23 -04:00
LICENSE Updating LICENSE to template content 2020-03-10 13:02:40 -07:00
Makefile CLI Election Record Export (#590) 2022-04-13 11:31:41 -04:00
README.md 🐍 Remove lock on gmpy2 to allow python 3.10 (#545) 2022-02-17 14:33:50 -05:00
SECURITY.md Initial SECURITY.md commit 2020-03-10 13:02:43 -07:00
mkdocs.yml 🐍 Remove lock on gmpy2 to allow python 3.10 (#545) 2022-02-17 14:33:50 -05:00
poetry.lock 🐍. Big Integer and Base Element (#599) 2022-04-19 10:06:18 -04:00
pyproject.toml 🐍. Big Integer and Base Element (#599) 2022-04-19 10:06:18 -04:00

README.md

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)