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

Consider using Rkyv for serialization #101

Open
Wiezzel opened this issue May 17, 2024 · 1 comment
Open

Consider using Rkyv for serialization #101

Wiezzel opened this issue May 17, 2024 · 1 comment

Comments

@Wiezzel
Copy link
Contributor

Wiezzel commented May 17, 2024

We need to hack protobuf to achieve deterministic serialization, e.g. here.

Rkyv is a zero-copy serialization library for Rust. It could be a viable alternative to protobuf.

  • Has deterministic serialization,
  • Is significantly faster than prost (benchmarks),
  • Has lower memory footprint, because it supports string re-use (shared pointers).
@Wiezzel
Copy link
Contributor Author

Wiezzel commented Jul 30, 2024

It's rust-only and is not fully specified. Therefore, rewards bot (written in JS) would have trouble validating query log signatures. Borsh seems to be a better candidate.

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

No branches or pull requests

1 participant