Skip to main content

verify_revoke_all_proof

Function verify_revoke_all_proof 

Source
pub fn verify_revoke_all_proof(
    identity_key: &HybridVerifyingKey,
    challenge: &str,
    signature: &HybridSignature,
) -> bool
Expand description

Whether signature is a valid revoke-all proof for challenge under identity_key.

identity_key is the account’s anchor — the identity public key its published device directory verifies under — not a key the request supplied. A proof checked against a caller-supplied key proves only that the caller can sign, which is not a fact about the account.