Function get_cached_pubkey
Source pub fn get_cached_pubkey(alias: &str) -> Result<Option<Vec<u8>>>
Expand description
Get a cached public key for the given alias.
§Arguments
alias - The key alias (e.g., “default”).
§Returns
Ok(Some(Vec<u8>)) - The 32-byte public key if cached.
Ok(None) - If no cache exists for this alias.
Err - If there’s an error reading or parsing the cache.