pub fn check_commitment<H: Digest + FixedOutputReset, C>(
    hasher: &mut H,
    commitment: &[u8],
    revealed_random: &[u8],
    untrusted_computation: C
) -> Result<(), Error>where
    C: Fn(&mut PlaybackRng) -> Vec<u8>,
Expand description

Check the commitment given by a challenge. This should be done on a different device seperately from the device being challenged.

This function will return an error if verification of the challenge failed (meaning the challenged device attempted to cheat).