Skip to main content

DIG_MESSAGE

Constant DIG_MESSAGE 

Source
pub const DIG_MESSAGE: u8 = 220;
Expand description

Wire opcode for a directed dig-message envelope (WU6, epic #796).

The 200..=219 band is the DIG L2 consensus band (DigMessageType); 220..=255 is the free band for directed application protocols. Opcode 220 carries a dig-message directed envelope as OPAQUE bytes in DigMessage::data — the transport (dig-gossip) never seals, opens, or parses it; end-to-end sealing to the recipient’s DID key is dig-message’s job.

This is a cross-repo canonical constant — it MUST NOT drift. dig-gossip mirrors it as dig_gossip::DIG_MESSAGE (and ProtocolMessageTypes::DigMessage) for its transport.