Currently there are multiple functions that can load up an election context with extended data. There is a typo in the NativeInterface where eg_ciphertext_election_context_make_from_hex is used instead of eg_ciphertext_election_context_make_from_hex_with_extended_data so that the wrong C++ function underneath will be called and the extended data that is sent in will not work.
When data is serialized to or from JSON/BSON it does not use the extended data in the election context.
Expected Behavior
The NativeInterface should be using eg_ciphertext_election_context_make_from_hex_with_extended_data for the method that creates the election context with extended data.
When using the serialization with JSON/BSON the extended data should be included as well.
Is there an existing issue for this?
Current Behavior
Currently there are multiple functions that can load up an election context with extended data. There is a typo in the NativeInterface where eg_ciphertext_election_context_make_from_hex is used instead of eg_ciphertext_election_context_make_from_hex_with_extended_data so that the wrong C++ function underneath will be called and the extended data that is sent in will not work.
When data is serialized to or from JSON/BSON it does not use the extended data in the election context.
Expected Behavior
The NativeInterface should be using eg_ciphertext_election_context_make_from_hex_with_extended_data for the method that creates the election context with extended data.
When using the serialization with JSON/BSON the extended data should be included as well.
Steps To Reproduce
No response
Environment
Anything else?
No response