Giter VIP home page Giter VIP logo

redknight1389 / electionguard-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from election-tech-initiative/electionguard-dotnet

0.0 1.0 0.0 234 KB

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.

License: MIT License

C# 93.67% PowerShell 3.39% Shell 2.43% Makefile 0.51%

electionguard-dotnet's Introduction

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.

electionguard-dotnet's People

Contributors

keithrfung avatar addressxception avatar pamtaro avatar microsoftopensource avatar echumley-msft avatar microsoft-github-operations[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.