Skip to main content

Module cache

Module cache 

Source
Expand description

LRU cache for signature verification results.

Avoids re-verifying identical (algorithm, public_key, message, signature) tuples. Thread-safe via Mutex. LRU eviction by entry count.

§Usage

use confium_composite::cache::VerificationCache;

let cache = VerificationCache::new(1024);
// First call: miss → verify → cache result
// Second call: hit → return cached result

Structs§

VerificationCache
Thread-safe LRU cache for signature verification results.