pub fn verify_commitment(key: &KeriPublicKey, commitment: &Said) -> boolExpand description
Verify that a public key satisfies a commitment.
Args:
key- The next public key to check, carrying its curve.commitment- The commitmentSaidfrom a previous event’snfield.
Usage:
use auths_keri::{compute_next_commitment, verify_commitment, KeriPublicKey};
let key = KeriPublicKey::Ed25519([1u8; 32]);
let c = compute_next_commitment(&key);
assert!(verify_commitment(&key, &c));
assert!(!verify_commitment(&KeriPublicKey::Ed25519([2u8; 32]), &c));