Setu-TS
    Preparing search index...

    Function persistedQueryHash

    • Compute a SHA-256 hash of the query string and return lowercase hex.

      Takes a SubtleCrypto instance (from runtime.subtle), never uses a global or runtime-specific API.

      Parameters

      • query: string

        The query string to hash

      • subtle: SubtleCrypto

        The SubtleCrypto instance

      Returns Promise<string>

      The lowercase hex hash