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§
- Device
Grant - 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.
- Session
Offer - What a peer presents in Hello, for
Roster::check_session.
Enums§
- Caller
Check - What
Roster::check_callerdecided about a caller. - Device
Class - What kind of device a
DeviceGrantmakes a cert. - Session
Check - 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.