Skip to main content

verify

Function verify 

Source
pub fn verify(data: &[u8], expected: &str) -> Result<(), IntegrityError>
Expand description

Verify that data matches an expected hash string (e.g. “sha256:abc123…”). Returns Ok(()) if valid, Err with a message if not.