Skip to main content

verify_blob_content

Function verify_blob_content 

Source
pub fn verify_blob_content(url_str: &str, bytes: &[u8]) -> Option<bool>
Expand description

Verify a downloaded body against its URL’s content address. Some(true) = bytes match the blob hash, Some(false) = the source served the wrong bytes, None = the URL carries no content address to check.