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

Group and Element Mathematical Operator Overloads

Open AddressXception opened this issue 4 years ago • 0 comments

Generic Issue

  • [ ] Ensure this issue is not a bug report or feature request

Description The python version of the group and element classes have Mathematical functions for things such as adding them together, doing power operations, and other more complex ones such as (a + bc) all with making sure that the answer fits into an ElementModP or ElementModQ in the end. This is not built into the C++ version of these classes.

Possible Solution Implement the basic functionalities of this using mathematical operator overloading.

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

AddressXception avatar Jan 25 '21 19:01 AddressXception