Skip to main content

validate_response

Function validate_response 

Source
pub fn validate_response(
    request: &Request,
    response: &Response,
) -> Result<(), String>
Expand description

Checks a returned worker’s request identity and conclusive evidence shape. This supplements the parent’s pinned worker-byte admission; it does not authenticate an arbitrary caller-supplied verdict as a native result.

§Errors

Mismatched protocol/input or absent/incompatible conclusive evidence.