Election-Tech-Initiative / electionguard-cpp

A C++ implementation of ElectionGuard specification focused on encryption components.
https://www.electionguard.vote/
MIT License
23 stars 26 forks source link

#336 Add ability to specify which ballots should be spoiled in the CLI #337

Closed lprichar closed 1 year ago

lprichar commented 1 year ago

Issue

Fixes #336

Description

Adds ability to specify which ballots should be spoiled in the CLI, also can specify a device file.

Testing

Run CLI like:

encrypt
--context ...\context.json
--manifest ...\manifest.json
--ballots ...\plaintext_ballots_dir
--device ...\1237890000-1237890000
--spoiled_ids ballot-f53f9dd7-0f8e-11ed-a95e-04d9f5218a21,ballot-f53f9dd8-0f8e-11ed-ac4f-04d9f5218a21,ballot-f5417297-0f8e-11ed-a773-04d9f5218a21,ballot-60c7ba75-1e44-11ed-92f6-4c1d96f207af
--out G:\artifacts\encrypted_ballots