You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`0x01`| is chat node | advert is for a chat node |
47
+
|`0x02`| is repeater | advert is for a repeater |
48
+
|`0x03`| is room server | advert is for a room server |
49
+
|`0x10`| has location | appdata contains lat/long information |
50
+
|`0x20`| has feature 1 | Reserved for future use. |
51
+
|`0x40`| has feature 2 | Reserved for future use. |
52
+
|`0x80`| has name | appdata contains a node name |
46
53
47
54
# Acknowledgement
55
+
56
+
An acknowledgement that a message was received. Note that for returned path messages, an acknowledgement will be sent in the "extra" payload (see [Returned Path](#returned-path)) and not as a discrete ackowledgement. CLI commands do not require an acknowledgement, neither discrete nor extra.
| checksum | 4 | CRC checksum of message timestamp, text, and sender pubkey |
51
61
52
62
53
63
# Returned path, request, response, and plain text message
64
+
65
+
Returned path, request, response, and plain text messages are all formatted in the same way. See the subsection for more details about the ciphertext's associated plaintext representation.
| destination hash | 1 | first byte of destination node public key |
@@ -60,11 +73,13 @@ Appdata Flags
60
73
61
74
## Returned path
62
75
76
+
Returned path messages provide a description of the route a packet took from the original author. Receivers will send returned path messages to the author of the original message.
| channel hash | 1 |the first byte of the channel's public key|
177
+
| cipher MAC | 2 | MAC for encrypted data in next field |
178
+
| ciphertext | rest of payload | encrypted message, see below for details |
164
179
165
-
Plaintext for text message
180
+
The plaintext contained in the ciphertext matches the format described in [plain text message](#plain-text-message). Specifically, it consists of a four byte timestamp, a flags byte, and the message. The flags byte will generally be `0x00` because it is a "plain text message". The message will be of the form `<sender name>: <message body>` (eg., `user123: I'm on my way`).
0 commit comments