use blake3_merkle::Merkle; use std::{env, error::Error, fs::File, io::copy}; fn main() -> Result<(), Box> { let fpath = env::current_dir()?.join("test.pdf"); let mut blake3 = blake3::Hasher::new(); copy(&mut File::open(&fpath)?, &mut blake3)?; let mut merkle = Merkle::new(); copy(&mut File::open(&fpath)?, &mut merkle)?; merkle.finalize(); dbg!(&merkle.li); dbg!(merkle.blake3()); dbg!(blake3.finalize()); Ok(()) }