Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize Ciphertext G1 and G2 points in compressed form #145

Closed
cygnusv opened this issue Jul 20, 2023 · 1 comment
Closed

Serialize Ciphertext G1 and G2 points in compressed form #145

cygnusv opened this issue Jul 20, 2023 · 1 comment
Labels

Comments

@cygnusv
Copy link
Member

cygnusv commented Jul 20, 2023

pub fn serialized_length(&self) -> usize {
self.commitment.serialized_size(Compress::No)
+ self.auth_tag.serialized_size(Compress::No)
+ self.ciphertext.len()
}

This function is either incorrect & unused (in which case, it should be fixed/removed), or it's hinting that we're serializing the U and W components in uncompressed form (which is slightly wasteful).

@cygnusv
Copy link
Member Author

cygnusv commented Aug 1, 2023

The method above is not used and will be removed by #149. Regarding the original question, G1 and G2 points in ciphertexts are serialized in compressed form as seen on ferveo-common/src/serialization.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant