Skip to main content

Module roster

Module roster 

Source
Expand description

Device roster: self-issued NodeCerts, revocations and the key epoch.

Certificates themselves are created and checked by weirdnet_net::user / Profile::certify. This module keeps the set, bumps the epoch on revoke, and decides whether a peer may start a sync session. The key chain (KeyChain: device keys, rotations and admissions) travels with the roster; see crate::rotation.

Structs§

DeviceGrant
The user’s signed statement of what a device is: its class, its roles and, for a service device, the sync types it may hold keys for. Signed by the user key, so only a device holding the seed can make one; it travels in the roster with the certs.
Roster
The user’s devices and the current sealing epoch.
SessionOffer
What a peer presents in Hello, for Roster::check_session.

Enums§

CallerCheck
What Roster::check_caller decided about a caller.
DeviceClass
What kind of device a DeviceGrant makes a cert.
SessionCheck
Why a hello is refused, as sent on the wire.

Constants§

MAX_GRANT_ROLES
Most roles one grant carries.
MAX_GRANT_TYPES
Most sync types one grant scopes.

Functions§

default_profile
Default profile used for certs unless the application passes another.