Skip to main content

Module package

Module package 

Source

Structs§

PackageProgress
What arrived with the latest package blob.
PackageRecord
Package record.

Constants§

PACKAGE_CHUNK
Plaintext size of one part. With the part number and AEAD tag the blob stays below the relay limit (1 MiB).
PACKAGE_MAX_BYTES
Package stream limit: the relay accepts at most 64 MiB phone→desktop per link, 1 MiB is reserved for ACCEPT, the certificate, MLS requests and control blobs. Whatever does not fit: photos via /api/blob (SECTION_PHOTO_BLOB_REF).
PHOTO_MAX
Photos larger than this are not transferred (treated as a large file).
SECTION_ACCOUNT_SYNC
Shared key of the account’s devices (account_sync_key, 32 B): device names etc.
SECTION_CHAT
SECTION_COMM_MEMBERSHIP
SECTION_COMM_VAULT
SECTION_CONTACT
SECTION_MESSAGE_PHOTO
SECTION_MESSAGE_TEXT
SECTION_MLS_WELCOME
SECTION_PHOTO_BLOB_REF
History photo uploaded to /api/blob (body is the file reference and key, ≤ 4 KiB): used when the package does not fit the relay limit (64 MiB). The “is a still image” check happens on the desktop after download and decryption (link_is_still_image).
SECTION_PROFILE

Functions§

link_is_still_image
Still images only, by signature: JPEG, PNG, GIF, WebP, HEIC/HEIF, AVIF. Video in an ISO BMFF container (mp4/mov/3gp/HEIF sequences) is rejected.