Skip to main content

Module constants

Module constants 

Source
Expand description

Numbers a phone and a leaf node must configure identically.

Each of these is a value that appears on both sides of a sealed conversation. A copy that drifts does not fail a build or a test: it produces a peer that is configured differently from the one it is talking to, and the symptom arrives later, on a device, as a message that will not decrypt.

Constants§

ACK_FOR_KEY
The metadata key naming the message a delivery acknowledgement answers.
LEAF_KEY_PACKAGE_LIFETIME
How long a leaf node’s key package claims to be valid.
LEAF_KEY_PACKAGE_NOT_BEFORE_BACKDATE_SECONDS
How far into the past a leaf’s key package validity window has to start.
LEAF_SENDER_RATCHET_MAXIMUM_FORWARD_DISTANCE
How far ahead a leaf node’s receiver ratchet may be fast-forwarded: a frame more than this many generations past the next one it expects is refused.
MAX_ACCEPTED_KEY_PACKAGE_LIFETIME
The widest validity window this SDK will admit in a key package it did not mint, at import and on every read of the cache.
SENDER_RATCHET_MAXIMUM_FORWARD_DISTANCE
How far ahead of the highest seen generation a sender ratchet may be fast-forwarded when messages are lost.
SENDER_RATCHET_OUT_OF_ORDER_TOLERANCE
How many generations behind the latest decrypted message a sender ratchet key is kept, so late/reordered messages remain decryptable.