function · Browser and Node
verifyCredential
Checks a credential's proof and validity window. Revocation and application authorization are separate.
validFrom may be up to one minute ahead of the clock; validUntil is exclusive.
@toip-tools/trust-coreView sourceimport { verifyCredential } from "@toip-tools/trust-core";
Declaration
verifyCredential(vc: Credential, clock: Clock): Promise<CredentialCheck>;
Parameters
vcrequiredCredentialCredential to verify.
clockrequiredClockSupplies the current time for proof and credential checks.
Returns
Promise<CredentialCheck>{ ok: true } on success, or a proof/validity failure code in failure.