electionguard-cpp icon indicating copy to clipboard operation
electionguard-cpp copied to clipboard

Precompute discrete log lookup

Open AddressXception opened this issue 4 years ago • 0 comments

Description This is the sibling issue to the python issue

currently, elgamal.cpp#decrypt only decrypts a zero or a one. this issue is to implement the dlog in the same way as python, and to set a cutoff.

Additionally, we would like to precompute the values up to the cutoff and supply them as an optional file along with the binary so that consumers can choose to optimize for compute performance at the expense of storage space.

the relevant python code was updated as part of PR 405 and the same pattern should be applied here.

AddressXception avatar Jan 25 '21 19:01 AddressXception