WIRE_VERSION

Constant WIRE_VERSION 

Source
pub const WIRE_VERSION: u8 = 3;
Expand description

Current wire format version. Increment on any field addition/removal.

WIRE FORMAT CONTRACT:

v2 fields: wire_version, msg_id, correlation_id, sender, timestamp, payload, security_level, verified_sender_name

All v2 binaries must be deployed atomically (single compilation unit). Adding fields requires incrementing this constant and updating the decode path to handle both old and new versions during rolling upgrades.