Expand description
The network side, and the one transfer a process runs at a time.
A temporary client on the trusted relays carries the session, signing every event and every
relay AUTH as a throwaway key, never the account. Progress reaches the page as transfer_state.
The sender’s page never sees the number: the user carries it from the new device’s screen.
Structs§
- Started
- What
starthands back: the transfer’s id, and the code to display when this device shows it.
Constants§
- KIND
- Ephemeral: relays pass it on without keeping it for long.
Functions§
- approve
- Sender: hand the identity over. The host has already proven the user and opened the key.
- cancel
- Stop whatever transfer is running and forget anything it received.
- check_
number - Sender: is this the number on the new device’s screen?
- deny
- forget_
received - Receiver: signed in with it; let it go.
- received
- Receiver: the identity that arrived. It stays held until
forget_received, so a sign-in that fails can be tried again. - sender_
is_ current - Whether a sender’s transfer may still hand over: its account is the one on screen.
- start
- Begin a transfer. With
typed, this device joins that code; without, it shows a new one once the relays are listening. A sender passes the identity it will hand over.