Member Junction
    Preparing search index...

    Function ComputeContentHashAsync

    • Calculates SHA-256 hash of a mapped-field record or arbitrary object asynchronously. Uses Web Crypto API (crypto.subtle) which is available in modern browsers (secure contexts) and Node.js 15+.

      Produces hex digests byte-for-byte identical to Node.js node:crypto's createHash('sha256') over the canonical JSON produced by Canonicalize.

      Parameters

      • fields: Record<string, unknown>

      Returns Promise<string>