Skip to main content

verify_response_proof

Function verify_response_proof 

Source
pub fn verify_response_proof(
    proof: &ParsedProof,
    expected_service_domain: &str,
    expected_request_id: &RequestId,
    expected_response_binding: Option<&ResponseBinding>,
    resolver: &dyn EnrollmentResolver,
    now: u64,
) -> Result<VerifiedProof>
Expand description

Verify a response proof against the enrolled service identity for the service domain the request was addressed to, and against the exact request it answers.

A response signed by a different enrolled service’s key — even a validly enrolled one — fails: the caller compares against the one service it addressed, never against “any enrolled service” (§9.4). A response proof can never verify for another request ID.