3.1 KiB
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#
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.
- Initialize the submodule
- Navigate to
libs\ElectionGuard-SDK-C-Implementation
- Follow platform specific instructions
Linux
- Install cmake and gmp (
sudo apt-get install cmake libgmp3-dev
) cmake -S . -B build -DBUILD_SHARED_LIBS=ON
cmake --build build
libelectionguard.so
should be created
MacOS (.dylib)
- Install cmake and gmp (
brew install cmake gmp
) cmake -S . -B build -DBUILD_SHARED_LIBS=ON
cmake --build build
libelectionguard.dylib
is created
Windows (.dll)
- Install cmake and gmp (Use Step 1 from Windows Instructions for C-Implementation)
cmake -S . -B build -G "MSYS Makefiles" -DBUILD_SHARED_LIBS=ON
cmake --build build
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.