Skip to main content

verify_signed_document_with_anchors

Function verify_signed_document_with_anchors 

Source
pub fn verify_signed_document_with_anchors(
    document: &SignedDocument,
    trust: TrustAnchors<'_>,
) -> Result<VerifiedPayload>
Expand description

Verifies a signed document against anchors from either source.

The one to reach for when the document is not a release — a channel or a revocations document has no consumer entry point of its own, and this keeps it on the same trust resolution.

§Errors

See TrustAnchors::resolve and verify_signed_document.