Skip to main content

Crate teter_core

Crate teter_core 

Source
Expand description

What teter’s clients share that does no I/O (#142): the end-to-end encryption (e2e), the account’s crypto (account) and signed commands (command). It builds for wasm32-unknown-unknown, for the web client (#61); teter-client re-exports it, with the relay connection.

Modules§

account
The client side of accounts: the keys derived from the password, the account’s key pairs, their wrapping, and the requests to the relay’s account service (teter_common::account).
command
Signed commands to a machine (#88), without I/O: a device seals a command to the one-time key of a challenge the machine signed, and opens the machine’s signed reply. The channel that carries them is teter_client::command’s.
e2e
End-to-end encryption between backend and frontend: the relay forwards terminal data it cannot read. See docs/architecture.md, “End-to-end encryption”, for the design.
history
A session’s history kept on disk across restarts (#93), as a frontend gets it: the machine seals each chunk of what its terminal printed to the account’s public keys (crate::account::seal_to with CHUNK_INFO), so it can write them but not read them back; after a restart, the session process sends the chunks it kept before, unopened, with the time it started and its screen, in one replay of kind crate::e2e::Kind::History; the device opens the chunks with the account’s private key.
sessions
The account’s machines and sessions as the relay lists them (#87, #133), checked and opened with the account’s keys: what a device may trust of a Sessions answer, never the relay’s word.