Skip to main content

authenticate_archive

Function authenticate_archive 

Source
pub async fn authenticate_archive(
    store: &Arc<dyn ObjectStore>,
    request: &VerifyRequest,
    trusted: &TrustedManifestKeys,
) -> Result<AuthenticatedArchive, WormError>
Expand description

Deeply verifies an archive and returns the signed claims for every object accepted by the chain walk.

This always uses VerifyDepth::Deep, regardless of request.depth. Callers must grade AuthenticatedArchive::report before consuming the claims, then hash the bytes they consume against AuthenticatedArchive::objects.

ยงErrors

Returns WormError under the same conditions as verify_archive.