pub fn root_info(&self, version: u64) -> anyhow::Result<Option<(H256, u64)>> {
        let Some(root) = self.db.try_root(version)? else {
            return Ok(None);
        };
        let root_hash = root.hash::<P>(&self.hasher);
        Ok(Some((root_hash, root.leaf_count)))
    }
Returns the root hash and leaf count at the specified version.
core/lib/zk_os_merkle_tree/src/lib.rs