This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 tasks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Since we adjusted the create election workflow to use the new classes here, should we either:
- remove the
examples/simple/main_keyceremony.h
and corresponding implementation, or - modify
examples/simple/main.c
to include both initialization workflows (so it's clear the simple election tests can be executed using both setup methods)?
I think I prefer to keep both examples around.. maybe I should create an |
… updated api example
pamtaro
changed the title
Implement API to Create Election from the C library
⚠ (WIP) Implement API in the C library
Nov 26, 2019
AddressXception
previously approved these changes
Nov 26, 2019
… are non-blittable from C# and the array is not a fixed size
9 tasks
AddressXception
previously approved these changes
Dec 2, 2019
pamtaro
changed the title
⚠ (WIP) Implement API in the C library
Implement API in the C library
Dec 2, 2019
echumley-msft
approved these changes
Dec 2, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
🚨Please review the guidelines for contributing to this repository.
Description
This introduces an api layer to the C library which can be used to execute the entire election via single api methods to create election/key ceremony, encrypt ballot, register ballot, record cast/spoil ballot, and tally votes. It is based on the simple election's examples, but with adjustments to the flow to more approriately fit real eleciton scenarios and with signatures adjusted to allow for Interop marshalling via PInvoke from the C# wrapper sdk side. This also adds the api version to the examples folder as an alternative executable that can demonstrate an end-to-end election.
NOTE: This contains and should be merged after PR #42
closes #33
closes #34
closes #35
closes #36