Skip to main content

challenge_memory_key

Function challenge_memory_key 

Source
pub fn challenge_memory_key(domain: &str, target_class: TargetClass) -> String
Expand description

Build a stable, lower-cased cache key for the challenge memory entry keyed by (domain, target_class).

ยงExample

use stygian_charon::challenge_feedback::challenge_memory_key;
use stygian_charon::types::TargetClass;

let key = challenge_memory_key("Example.COM", TargetClass::Api);
assert!(key.starts_with("charon:challenge:example.com:"));