Skip to main content

Crate syncspin_core

Crate syncspin_core 

Source
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.

This is a 0.1 work in progress: the Noise layer, the message types, the framing layer, the clock filter and the pairing token exist so far.

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_ChaChaPoly_SHA256.
pairing
Pairing primitives shared by clients and servers.

Functions§

version
Returns the version of this crate as recorded in its manifest.