diff options
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/indexer')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/indexer/group_index.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/indexer/group_index.py b/packages/meshbay-node/src/meshbay_node/indexer/group_index.py index 25081ef..2340c78 100644 --- a/packages/meshbay-node/src/meshbay_node/indexer/group_index.py +++ b/packages/meshbay-node/src/meshbay_node/indexer/group_index.py @@ -107,8 +107,15 @@ class GroupIndex: def serialize(self) -> bytes: """ - Produce a wire-ready byte string: + Produce a signed index envelope: msgpack → zstd → [GEK encrypt if private] → sign → length-prefixed envelope + + **This is not an MNP message.** It was the payload of `index_sync` on the QUIC + transport, while WebRTC sent plain entries under the same type — one message + type, two encodings (2026-09-03). Both transports now build `index_sync` from + `transport/wire.py`. This stays as a correct at-rest/interchange format, and + as the only thing that signs and encrypts a whole index; read it as that, not + as a wire contract. """ payload = msgpack.packb({ "group_id": self.group_id, |