pub trait ContentDigest {
type Error;
type Content;
// Required methods
fn digest<H>(
self,
) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
where H: ContentHasher,
Self: Sized;
fn verify_digest<H>(
self,
) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
where H: ContentHasher,
Self: Sized;
}