1. Text — ChatWire kind 0x01
Text (ChatWireText)
Human-readable chat text shown in the conversation UI. Wire: magic ASCII “S2P1” (4) + kind 0x01 + text length u32 little-endian + UTF-8 bytes. Source type: ChatWireText / ChatWireCodec.EncodeText.
Example (unencrypted)
Logical: text = "Hello"
Hex (unencrypted):
53 32 50 31 01 05 00 00 00 48 65 6C 6C 6F
| S2P1 |kind| len=5 LE | H e l l o
Decoded: S2P1 | Text | "Hello"