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
| public key | 32 | Ed25519 public key of the node|
23
27
| timestamp | 4 | unix timestamp of advertisement |
24
28
| signature | 64 | Ed25519 signature of public key, timestamp, and app data |
25
29
| appdata | rest of payload | optional, see below |
@@ -45,12 +49,18 @@ Appdata Flags
45
49
|`0x80`| name | appdata contains a node name |
46
50
47
51
# Acknowledgement
52
+
53
+
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
58
52
59
53
60
# Returned path, request, response, and plain text message
61
+
62
+
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 +70,13 @@ Appdata Flags
60
70
61
71
## Returned path
62
72
73
+
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|
174
+
| cipher MAC | 2 | MAC for encrypted data in next field |
175
+
| ciphertext | rest of payload | encrypted message, see below for details |
164
176
165
-
Plaintext for text message
177
+
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