This repository implements the ElectionGuard API using C#. It includes all major functions of the ElectionGuard SDK, including key ceremony, ballot encryption, encrypted ballot tally, and partial decryptions for knowledge proofs of trustees.
Перейти к файлу
Ethan Chumley 3bc4f4a0df
Add deprecation notice (#61)
2020-06-15 12:40:07 -04:00
.github Remove github package registry push (#56) 2020-02-05 10:29:25 -05:00
images 📄 Update Readme (#55) 2020-02-05 10:29:25 -05:00
libs Bug/max ballots (#54) 2020-02-05 10:29:25 -05:00
scripts change file mode for linux scripts to be executable (#42) 2020-02-05 10:29:25 -05:00
src/ElectionGuard Bug/max ballots (#54) 2020-02-05 10:29:25 -05:00
tests Bug/max ballots (#54) 2020-02-05 10:29:25 -05:00
.gitignore Feature/external ballot id (#53) 2020-02-05 10:29:25 -05:00
.gitmodules 🔧Add C-Implementation as submodule 2020-02-05 10:29:25 -05:00
CODE_OF_CONDUCT.md Initial commit 2019-10-03 10:57:05 -07:00
CONTRIBUTING.MD 📝Update Project for better Open Source flow (#20) 2020-02-05 10:29:25 -05:00
ElectionGuard-SDK-CSharp.sln (WIP) Implement C API (#40) 2020-02-05 10:29:25 -05:00
LICENSE Initial commit 2019-10-03 10:57:07 -07:00
Makefile Feature/external ballot id (#53) 2020-02-05 10:29:25 -05:00
README.md Add deprecation notice (#61) 2020-06-15 12:40:07 -04:00
SECURITY.md Initial commit 2019-10-03 10:57:08 -07:00
nuget.config 🚀 Nuget Package (#24) 2020-02-05 10:29:25 -05:00

README.md

Microsoft Defending Democracy Program: ElectionGuard

Note: This repository has been deprecated & transitioned

As of 06/15/2020, this repository is no longer being actively maintained. ElectionGuard development has transitioned to the ElectionGuard-Python Repo.

This repository will remain open sourced and available, but will no longer be actively maintained or updated. Updates will be posted here and on our Main repository Page. This URL will become archived and read-only in Summer of 2020.

🗳️ ElectionGuard SDK C#

build nuget license

This is a C# wrapper for the core SDK that performs election functions such as vote encryption, decryption, key generation, and tallying. This code is meant to be run on voting system hardware and to be integrated into existing (or new) voting system software. The ElectionGuard SDK is meant to add end-to-end verifiability and encryption into 3rd party comprehensive voting systems.

This repository is pre-release. We look forward to engaging with the elections, security, and software engineering communities to continue to improve it as we move towards a full release.

This project is bound by a Code of Conduct.

Building

C-Implementation Submodule

For each platform, the C-Implementation in the submodule must be built first. The instructions vary per platform.

  1. Initialize the submodule
  2. Navigate to libs\ElectionGuard-SDK-C-Implementation
  3. Follow platform specific instructions

Linux

  1. Install cmake and gmp (sudo apt-get install cmake libgmp3-dev)
  2. cmake -S . -B build -DBUILD_SHARED_LIBS=ON
  3. cmake --build build
  4. libelectionguard.so should be created

MacOS (.dylib)

  1. Install cmake and gmp (brew install cmake gmp)
  2. cmake -S . -B build -DBUILD_SHARED_LIBS=ON
  3. cmake --build build
  4. libelectionguard.dylib is created

Windows (.dll)

  1. Install cmake and gmp (Use Step 1 from Windows Instructions for C-Implementation)
  2. cmake -S . -B build -G "MSYS Makefiles" -DBUILD_SHARED_LIBS=ON
  3. cmake --build build
  4. electionguard.dll is created

C# Library Solution

Note: This build will copy the library created by the submodule build.

Use Visual Studio or dotnet build to build.

Testing

Warning: Prior to testing, the submodule and the solution must be built in correct order.

Use dotnet test to start unit tests or Visual Studio Test Explorer.

Contributing

Help defend democracy and contribute to the project.