Skip to main content

Module keys

Module keys 

Source
Expand description

Worker keys of a place (E8 GET /v1/places/{p}/worker-keys?since=, C0 2.0 §3.17.2): the instance and alias keys that sign class-W events, cached per place so the replica verifies offline.

A key verifies an event received while it was valid: created_at ≤ received_at and (revoked_at null or received_at < revoked_at). An unknown key id is fetched once more since the cursor.

Structs§

WorkerKey

Enums§

KeyKind

Functions§

fetch
Fetch the place’s keys since the cached cursor and store them.
worker_key
The cached key key_id of place_ref for an event received at received_at (ms), with the workers it signs for.
worker_key_or_fetch
worker_key, fetching once when the key id is not cached yet.