Skip to main content

ash_verify_proof

Function ash_verify_proof 

Source
pub fn ash_verify_proof(
    nonce: &str,
    context_id: &str,
    binding: &str,
    timestamp: &str,
    body_hash: &str,
    client_proof: &str,
) -> Result<bool, AshError>
Expand description

Verify proof (server-side).

§Returns

Ok(true) if proof is valid, Ok(false) if proof is invalid, Err if inputs are malformed.

§Timestamp Validation

This function validates the timestamp format but does NOT check expiry. Use ash_validate_timestamp() separately if you need to enforce timestamp freshness.