docs(mesh): pin Dawn's payload-layout ratification in the datagram contract

Doc-only: MeshDatagram.payload for realtime media is [peer_index: u8][client
frame] — peer_index is relay routing metadata allocated solely by the owner
pod; the media ciphertext stays NIP-44 end-to-end between clients. Ratified
in-thread (Dawn's design-lock post); no wire shape change.

Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
This commit is contained in:
npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d
2026-07-08 10:10:44 -04:00
co-authored by Tyler Longwell
parent 5819fde839
commit f29fd321f0
+5 -2
View File
@@ -103,8 +103,11 @@ pub struct MeshDatagram {
/// Sender-scoped monotonic sequence for loss/reorder observability.
/// Receivers tolerate gaps and reordering; they never wait.
pub seq: u64,
/// Opaque, NIP-44-encrypted between client endpoints. The relay never
/// holds plaintext.
/// Opaque at this layer: the profile owner defines the internal layout.
/// For realtime media it is `[peer_index: u8][client frame]` — the
/// peer_index is relay routing metadata (owner pod is sole allocator);
/// the client frame's encrypted content is NIP-44 between client
/// endpoints, so server-side plaintext of the media itself never exists.
pub payload: Vec<u8>,
}