Skip to main content

Module encoded_post_bundle

Module encoded_post_bundle 

Source
Expand description

§EncodedPostBundleV1 — the server-signed index of posts at a location

A “post bundle” is a server’s durable record of every post accepted into a given (location_id, time bucket) pair. This is the unit of replication, caching, and healing on the network — timelines fetch bundles, caches store bundles, and the two-phase heal protocol reconciles divergent bundles.

The encoding is two parts glued together:

verify() is exhaustive: it checks the header signature, confirms the sum of header-declared lengths exactly spans the body, and decrypts each post to verify its own signature and that its plaintext post_id matches the header’s claim.

Structs§

EncodedPostBundleHeaderV1
The server-signed index for all posts accumulated under one (location, time-bucket) key.
EncodedPostBundleV1