Skip to main content

validate_body_structural

Function validate_body_structural 

Source
pub fn validate_body_structural(body: &Body) -> Result<(), AcdpError>
Expand description

Same as validate_body but skips the embedded-content_hash recomputation.

Used by acdp::client::VerifiedContext::fetch_report so per-DataRef embedded-hash outcomes can be recorded individually rather than short-circuiting the whole verification. Callers that want the embedded-hash check MUST run verify_embedded_hash themselves — fetch_report’s recording loop is one such caller.

Production code that doesn’t need partial-failure reporting should prefer validate_body.