1. Abstract and Ultimate Vision
The Orzatty Protocol is not a chat app. It is not an IP-bound local network (LAN) tool. The Orzatty Protocol is a Layer 4-7 Data Agnostic Transport Abstraction designed specifically to decouple digital communication from the traditional client-server internet architecture.
The ultimate operational goal is "WhatsApp without Internet": creating a hyper-local or globe-spanning decentralized mesh where nodes (smartphones, IoT devices, PCs) discover each other and exchange deeply compressed, high-speed binary frames.
2. The AsyncTransport Layer
Unlike TCP (handshake heavy) or UDP (stateless), the Orzatty Protocol implements a custom AsyncTransport layer. This layer wraps raw sockets and handles frame serialization asynchronously.
// Conceptual Frame Structure in Rust
pub struct OrzattyFrame {
pub version: u8,
pub frame_type: FrameType,
pub sequence_id: u32,
pub payload_size: u16,
pub payload: Vec<u8>,
pub checksum: u16,
}
3. Binary Frame Structure (9-Byte Header)
Efficiency is achieved through a strict 9-byte binary header, removing JSON/XML overhead.
| Offset (Bytes) | Field | Size | Description |
|---|---|---|---|
| 0 | Version | 1 Byte | Protocol v1.0 |
| 1 | Type | 1 Byte | 0x01: Handshake, 0x02: Data, 0x03: Ping |
| 2-5 | Seq ID | 4 Bytes | Big-Endian Sequence Identifier |
| 6-7 | Size | 2 Bytes | Payload Length |
| 8-9 | CRC | 2 Bytes | Checksum for Integrity |
4. Decentralized Node Discovery
The protocol utilizes a hybrid of mDNS for local discovery and a lightweight DHT (Distributed Hash Table) for network hops. Nodes maintain a routing table based on latency and signal strength (on radio interfaces) rather than just IP hops.
5. Security Roadmap
Phase 2 research will implement native End-to-End Encryption (E2EE) using Ed25519 curves for identity and XChaCha20-Poly1305 for data transport encryption, ensuring the holding cannot intercept communications.