Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/synapse/blob/main/crates/synapse-auth/src/key_cache.rs # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `synapse / crates / synapse-auth / src / key_cache.rs` 16 lines ยท 523 bytes Raw Blame History 1 //! Decoded-key cache for the grant, request and capability-chain checks (issue #93). 2 //! 3 //! The cache itself lives in `synapse_core::key_cache` so the changeset envelope check shares 4 //! it; see that module for the bounds and refusal rules. 5 6 pub(crate) use synapse_core::cached_verifying_key as verifying_key; 7 pub use synapse_core::KEY_CACHE_CAPACITY; 8 9 /// `(cached keys, point decodes)` for this thread. 10 #[cfg(test)] 11 pub(crate) fn stats() -> (usize, u64) { 12 synapse_core::key_cache_stats() 13 } 14 15 #[cfg(test)] 16 mod tests;