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

Party Name Serialization error #300

Closed SteveMaier-IRT closed 2 years ago

SteveMaier-IRT commented 2 years ago

Is there an existing issue for this?

Current Behavior

When serializing a manifest and a Party is read in, if the name of the party is not in the json, then C++ defaults to a null value. Python defaults to an InternationalizedText object with no data in it. This means that when the manifest creates its hash to use in the encrypting of ballots that it will not hash the same in C++ and Python.

Expected Behavior

The manifest hash should match from C++ and Python.

This can by done by making the Party name default to being created as an InternationalizedText field with no data in it. This will match the Python.

Steps To Reproduce

No response

Environment

- OS:

Anything else?

No response