Expand description
A presence directory for Weirdnet.
A node signs a short-lived Record (who it is, whether it is online, away or busy) and
publishes it to a directory; anyone can page the list of who is online. The directory keeps
records in memory only, drops each one when it expires, and checks every publish: the
signature, the time window, a ban list and a rate limit per identity. Readers verify every
signature themselves (client::list), so a directory can drop or hide records but never
forge one.
The crate is app-neutral: a record carries a free app tag, so one directory can serve
several apps, and nothing else about an app lives here. Detail fields (a status line, a
project name, last seen) are not part of a record; they travel between trusted nodes only.
The wire is a weirdnet_service service (service::DirService, protocol
service::PROTOCOL version service::VERSION). The signed bytes of a record are a fixed
binary layout, not the wire encoding (Record::signing_bytes), so a change of wire codec
never changes a signature.
Re-exports§
pub use client::list;pub use client::open_session;pub use client::publish;pub use directory::Config;pub use directory::Directory;pub use directory::Stats;pub use record::Record;pub use record::RecordError;pub use record::Signed;pub use record::Status;pub use service::DirService;pub use service::Req;pub use service::Resp;pub use service::serve;
Modules§
- client
- Publishing to a directory and reading its list.
- directory
- The directory: signed records in memory, paged reads, abuse controls.
- record
- The presence record and its signature.
- service
- The directory as a
weirdnet_serviceservice.