Function verify_commitment
Source pub fn verify_commitment(public_key: &[u8], commitment: &str) -> bool
Expand description
Verify that a public key matches a commitment.
§Arguments
public_key - The raw public key bytes to verify
commitment - The commitment string from a previous event’s ‘n’ field
§Returns
true if the public key hashes to the commitment, false otherwise