Skip to main content

Module key_exchange

Module key_exchange 

Source
Expand description

Shared key-exchange responder logic. The desktop’s sync writer and cinch pull --watch both invoke handle_event when the relay broadcasts key_exchange_requested for a peer device that has registered a public key but lacks an encrypted bundle.

Enums§

HandleEventError
RespondError

Functions§

handle_event
End-to-end handler for a KeyExchangeRequested WS event: look up the peer device’s public key via list_devices, then call respond to post the encrypted bundle.
respond
Build and post an encrypted key bundle for target_device_id.