mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
co-authored by
Tyler Longwell
parent
5819fde839
commit
f29fd321f0
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user