pub fn verify_checkpoint(
checkpoint: &Checkpoint,
keys: &[TrustedKey],
) -> Result<(), A2aError>Available on crate feature
audit only.Expand description
Checks a checkpoint’s signature against the keys a verifier trusts.
The key is chosen by the header’s kid, and must also be of the header’s
alg: a key is never tried under an algorithm it was not declared for.
§Errors
Returns an error naming why it does not verify: unsigned, malformed
header, a header that names critical extensions (crit, which no verifier
here understands), unknown algorithm, no trusted key with that kid and
alg, or a bad signature.