Skip to main content

verify_tree_integrity

Function verify_tree_integrity 

Source
pub async fn verify_tree_integrity<S: Store>(
    store: Arc<S>,
    root_hash: &Hash,
) -> Result<VerifyIntegrityResult, ReaderError>
Expand description

Verify tree integrity and content addresses.

Checks that:

  • all referenced hashes exist
  • every fetched blob/node satisfies sha256(bytes) == referenced_hash