pub fn verify_commitment(
context: &str,
commitment: &Commitment,
value: &[u8],
opening: &Opening,
) -> Result<()>Expand description
Check that commitment opens to value under opening and context.
ยงErrors
Returns Error::CommitmentMismatch if the recomputed commitment does not
equal commitment (wrong value, wrong opening, or wrong context).