Skip to content
On this page

Function: verifyActivityAttestation()

TypeScript
function verifyActivityAttestation(bundle: ActivityAttestationBundle, options?: VerifyActivityOptions): Promise<ActivityVerifyResult>;

Defined in: me-client/src/identity.ts:289 (opens in a new tab)

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.

ParametersLink to this section

ReturnsLink to this section

Promise<ActivityVerifyResult>