4. Transfer offer — ChatWire kind 0x04
Transfer offer (ChatWireTransferOffer)
Offers a large out-of-band transfer (TCP host/port and/or server blob), negotiated inside the encrypted chat. Payload after kind is JSON UTF-8 with length u32 LE. Fields include TransferId, TransferToken, PayloadKind, FileName, MimeType, SizeBytes, Host, Port, ExpiresUtcTicks, optional BlobId / TotalChunks / CiphertextSha256. Source: ChatWireTransferOffer / EncodeTransferOffer.
Example (unencrypted)
Logical JSON (unencrypted body after S2P1|0x04|len):
{
"TransferId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"TransferToken": "tok-demo-001",
"PayloadKind": "file",
"FileName": "report.pdf",
"MimeType": "application/pdf",
"SizeBytes": 1048576,
"Host": "192.168.1.20",
"Port": 18700,
"ExpiresUtcTicks": 638000000000000000,
"BlobId": null,
"TotalChunks": 0,
"CiphertextSha256": null
}
Frame: S2P1 | 0x04 | u32 LE(json length) | JSON UTF-8