Expand description
Protocol core for Sendspin.
This crate owns everything that is shared between client and server and that must exist
exactly once: the Noise handshake, message framing, the message types and the clock filter.
It knows no transport and no device integration, and it never depends on the
syncspin-client or syncspin-server crates.
Both halves use it: the Noise layer carries noise::Responder for the client and
noise::Initiator for the server, over both cipher suites the specification names. Beyond
that this crate holds the message types, the framing layer with fragmentation, the clock filter,
and the pairing primitives — the token, the CPace code flow and the AEAD that seals its values
behind pairing-code. It is the protocol and the crypto; the connection state machines live in
the syncspin-client and syncspin-server crates.
Modules§
- clock
- Clock synchronisation: a two-dimensional Kalman filter over clock offset and drift.
- framing
- Binary framing: message ids, fragmentation and reassembly.
- messages
- Sendspin wire messages.
- noise
- Sendspin’s Noise layer:
Noise_KKpsk2_25519_<cipher>_SHA256. - pairing
- Pairing primitives shared by clients and servers.
Functions§
- version
- Returns the version of this crate as recorded in its manifest.