-
Notifications
You must be signed in to change notification settings - Fork 240
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
know if a serialized piece of Arkworks structure has been compressed #818
Comments
Compression is very data specific, so it's hard to answer this question in full generality without knowing what comprises your struct.
|
Afaik, you should always compress for network wire formats, because compression's extra CPU time costs less than the extra network bytes, and blockchains magnify this. In particular, I'd expect the projective to affine conversions cost more, making batch_normalize more significant. It's different when you're only storing cached data locally, well then maybe uncompressed and/or unvalidated makes sense. In principle, one could even serialize in projective locally, but in general projective serialization is extremely dangerous. |
@mmagician @burdges |
i couldn't find anything related in the issue tracker, so here i am 😇
let's say i have the following piece of code
is it possible, on the other end of the protocol, to deserialize the bytes without passing around the same
compress: Compress
, e.g. maybe the information about compression is inside the bytes or something?i.e. i'm wondering if something like the following is possible
thanks and cheers 🥳 👋
The text was updated successfully, but these errors were encountered: