Skip to main content

verify_binary

Function verify_binary 

Source
pub fn verify_binary(binary_path: &Path) -> Result<(), String>
Expand description

Verify the SHA256 hash of a binary file against allowed hashes.

Returns Ok(()) if the hash matches, or Err with a description of the mismatch. If the DSCODE_SKIP_NODE_VERIFY environment variable is set, verification is skipped.