Skip to main content

verify_explained

Function verify_explained 

Source
pub fn verify_explained(
    credential: &Value,
    raw_public_key: &[u8],
    now_iso: &str,
    clock_skew_seconds: i64,
    opts: &ChainOptions<'_>,
) -> Result<(VerifyResult, Option<String>)>
Expand description

The full verifier: returns the VerifyResult and, when the chain is refused, its reason. opts carries the trusted roots, grant keys for non-did:key issuers, the post-quantum requirement and any explicit budget (see crate::delegation::ChainOptions). The credential’s own proof must be a single eddsa-jcs-2022 proof here; verify_with_keys also takes an ML-DSA-44 key for a proof set.