Skip to main content

verify_hash

Function verify_hash 

Source
pub fn verify_hash(data: &[u8], expected: &Hash) -> Result<(), CasError>
Expand description

Verify that data matches an expected hash.

Returns Ok(()) if blake3(data) == expected, Err(CasError::HashMismatch) otherwise.