Skip to main content

nonce_book_key

Function nonce_book_key 

Source
pub fn nonce_book_key(vendor: VendorId, nonce: &str) -> String
Expand description

Build a stable, lower-cased cache key for a (vendor_family, nonce) tuple.

ยงExample

use stygian_charon::token_lifecycle::nonce_book_key;
use stygian_charon::vendor_classifier::VendorId;

let key = nonce_book_key(VendorId::Cloudflare, "NONCE-XYZ");
assert!(key.starts_with("charon:token_nonce:cloudflare:"));