Skip to main content

Wire Protocol Serialization

Zoe Relay uses efficient binary serialization for network communication.

Serialization Format

The wire protocol uses Postcard for serialization, which provides:

  • Compact binary format
  • Zero-copy deserialization where possible
  • Strong type safety
  • Cross-platform compatibility

Message Structure

All messages follow a common structure:

Serialization Implementation

The serialization is implemented using Serde:

Versioning

The protocol includes versioning to handle compatibility:

Performance

Postcard serialization provides:

  • Fast serialization/deserialization
  • Small message sizes
  • Minimal memory allocation

For detailed API documentation, see the Rust API docs.