use std::{collections::HashSet, sync::Arc}; use crate::Result; pub trait Data: Send + Sync { fn get_cached_eventid_authchain(&self, shorteventid: &[u64]) -> Result>>>; fn cache_auth_chain(&self, shorteventid: Vec, auth_chain: Arc>) -> Result<()>; }