Expand description
The sealed stream of a move (SPEC_MOVE_AN_AGENT_TO_ANOTHER_COMPUTER section 6.3): an agent archive cut into 256 KiB
chunks, each one encrypted and authenticated, under one content key that is made for one move attempt and sealed to
the destination’s key with the same construction as a cloud file’s key (jekt_seal, one implementation).
What a chunk is bound to. Its associated data names the move, the attempt, the manifest hash, both installs, the chunk’s index, the chunk count and whether it is the last one. A chunk therefore opens only in its own move, at its own place, in a stream of its own length: a chunk replayed into another move or attempt, moved to another index, dropped from the end (a shorter stream) or spliced from a move of the same agent fails to open.
One key, one content. The nonce is the chunk index, so a key may seal only one content at each index. Sealer
remembers a hash of what it sealed at each index and refuses a different content there; the same content seals to the
same bytes (a resume re-sends identical chunks). A new attempt starts a new key.
Structs§
- Content
Key - The key of one move attempt: random, 256 bits, zeroed when dropped.
- Move
Binding - What every chunk of one move attempt is bound to.
- Opener
- Opens the chunks of one move attempt.
- Sealer
- Seals the chunks of one move attempt; remembers what it sealed at each index.
Enums§
- Seal
Error - Why a chunk or a key did not seal or open.
Functions§
- recipient
- Where to seal a move’s key: the destination’s X25519 box key (from its signed preflight answer, which the caller has checked against the pinned install key) and the fingerprint of the install key it came from.