Skip to main content

Module bootstrap

Module bootstrap 

Source
Expand description

Seed bootstrap: claiming a server for a new sync and publishing the seed’s frozen snapshot.

HTTP framing: POST /e2ee/bootstrap/v1. Control operations are application/json, one externally tagged operation in a context envelope. Package records travel only in binary batches (see staging::batch), each carrying its context in the batch header; the server answers a stored batch with Stored. Base64 strings and batch records carry exact existing codec bytes, never a second encrypted package representation. Setup and device credentials use Authorization: Bearer <64 lowercase hex digits>; only ClaimSetup uses setup authority. IDs and payloads never enter URLs. JSON requests are bounded at the base64 length of one chunk plus 4096 bytes of framing, batches at staging::batch::MAX_BYTES. Status responses are bounded at 1 MiB. Busy callers retry a bounded number of times.

Structs§

Client
Bounded seed bootstrap exchanges with one server.
Envelope

Enums§

Operation
Reply

Constants§

PATH
REQUEST_LIMIT
RESPONSE_LIMIT