Skip to main content

Module lan_handover

Module lan_handover 

Source
Expand description

A name that moved to another computer, as a computer that pinned it learns of it (SPEC_MOVE_AN_AGENT_TO_ANOTHER_COMPUTER section 6.5). The source install tells its peers with a signed statement (agent_move::handover); a peer that holds the name keeps what it accepted here, and the pin rule (lan_continuity) lets the destination install vouch for the new key when it shows up, as the install the pin was bound to would have.

What is accepted is narrow: from the install the name’s pin is bound to, naming the key the pin holds now, newer than the pin, unexpired, and from an install this computer still trusts. It moves nothing by itself: the new key is pinned only when it is shown with the destination’s own certificate, through the same checks as any move of a pin. It is kept in memory: a computer that restarts before the new key appears falls back to accepting the key by hand.

What was true when it was taken is checked again when it is used (allows): the pin must still hold the key the statement was about and still be older than it (the person may have accepted another key since), and the source install must still be trusted (it may have been revoked since). A statement that fails either is of no use and is dropped.

Structs§

Accepted 🔒

Constants§

MAX_KEPT 🔒
Statements kept at once: a flood from a paired computer cannot make this grow.

Functions§

about_the_pin 🔒
Whether a statement kept here still holds for the pin as it is now: it is about the key the pin holds and was issued after the pin.
accept 🔒
Takes the statement cert, sent by an agent of from_install and already verified under that install’s key. Why not, in a sentence, when it is not taken.
allows 🔒
Whether the install certifying may vouch for observed_key as agent’s key: the install the pin is bound to (bound) said, in a statement taken here, that the name went to exactly that install and exactly that key, and that still holds: the pin is the key it was about and older than it, and bound is still an install this computer trusts.
kept 🔒