pub fn fingerprint_with<H: Update + FixedOutput, T: Fingerprint>(
value: T,
hasher: H,
) -> Output<H>Expand description
Calculate the cryptographic hash of a data structure using provided hasher.
ยงExamples
use blake2::{digest::Digest, Blake2b512};
use fingerprint_struct::{fingerprint_with, Fingerprint};
let hash = fingerprint_with("Hello world!", Blake2b512::new_with_prefix("Application specific prefix"));
println!("{hash:?}");