Server Referencerouters
handshake
E2EE handshake endpoints (the only unencrypted API routes besides /ui).
attributelogger= logging.getLogger(__name__)attributerouter= APIRouter()funchandshake_initiate() -> dict[str, str]Return a signed nonce so the client can authenticate the server.
Returns
dict[str, str]funchandshake_exchange(request) -> dict[str, str]Accept the client's wrapped AES key and open an E2EE session.
paramrequestHandshakeExchangeRequestReturns
dict[str, str]