@orangecheck/me-client / verifyActivityAttestation
Function: verifyActivityAttestation()
function verifyActivityAttestation(bundle: ActivityAttestationBundle, options?: VerifyActivityOptions): Promise<ActivityVerifyResult>;
Defined in: me-client/src/identity.ts:276
Verify a signed activity attestation bundle. Returns a typed ActivityVerifyResult with per-check detail · never throws (network
- parse failures surface as ok=false rows in the checks array, so the caller can log them without try/catch).
Checks, in order: bundle shape, the signed bytes decode and are an
attestation in canonical form, the readable copy (when given) equals
them, JWK with matching kid present, ed25519 signature, freshness.
attestation in the result is read from the signed bytes, and is set
only when every check passes.
Parameters
| Parameter | Type |
|---|---|
bundle | ActivityAttestationBundle |
options | VerifyActivityOptions |
Returns
Promise<ActivityVerifyResult>