@opentdf/sdk
    Preparing search index...

    Function isValidTdf

    • Check an existing TDF using the Go SDK IsValidTdf validation rules. Opens the archive, reads its manifest, and applies the lax manifest schema. Supports experimental mlkem-wrapped key access. Returns false for an invalid archive or manifest and true when validation passes. No client or KAS access is needed. Unexpected errors, including source read failures, propagate to the caller. This does not validate the payload, verify cryptographic integrity, establish decryptability, or enforce service-specific policy requirements.

      Parameters

      • source: Uint8Array<ArrayBufferLike> | Blob

      Returns Promise<boolean>

      import { isValidTdf } from '@opentdf/sdk';
      if (!(await isValidTdf(new Uint8Array(await file.arrayBuffer())))) {
      throw new Error('Invalid TDF');
      }