@opentdf/sdk
    Preparing search index...

    Function verify

    • Verifies the signature of the assertion using the provided key.

      Parameters

      • thiz: Assertion

        The assertion to verify.

      • aggregateHash: Uint8Array

        The aggregate hash for integrity checking.

      • key: AssertionKey

        The key used for verification.

      • isLegacyTDF: boolean

        Whether this is a legacy TDF format.

      • cryptoService: CryptoService

        The crypto service to use for verification.

      Returns Promise<void>

      If the verification fails.

      If the integrity check fails.