Expand description
The Clock and Rng a caller injects, and the IdSource that mints UUIDv7s from them.
Always compiled: pure over its two traits, no native deps.
The ambient inputs a caller injects: wall-clock time and identifier randomness.
The stateless core reads no clock and draws no identifier itself (crate docs). Where a core operation mints a UUIDv7 — an account’s user and device ids, an MLS
intent id, a federation group_id — it takes an IdSource, built from a Clock and an
Rng the caller implements. capsule-library supplies the system implementations; tests
supply a fixed clock and a seeded source, so every minted identifier is reproducible.
Rng is for identifiers only. Key material, salts and nonces never come from an
injectable source: they are drawn from the OS CSPRNG behind crate::crypto::rng, the one
sanctioned exception.