Skip to content

Serialize Ciphertext G1 and G2 points in compressed form #145

@cygnusv

Description

@cygnusv

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions