zcash / pasta_curves

Rust implementation for zcash/pasta
Other
80 stars 49 forks source link

feat: implement UncompressedEncoding #73

Open huitseeker opened 1 year ago

huitseeker commented 1 year ago

The uncompressed representation (both coordinates are present in an affine point's representation) is useful in cases where one would want to avoid paying for the cost of a point decompression (e.g. public parameter caching).

Use case: Point (de)serialization when caching public parameters (for e.g. a vector Pedersen commitments), where the deserialization can be prohibitively expensive if done with the compressed form of the points. The uncompressed points do not have that flaw.

huitseeker commented 1 year ago

@str4d Please let me know if there's anything I can help with on this PR.