• Checks if the provided hash matches the computed hash of the provided data.

    Parameters

    • hash: string

      The hash to check against.

    • hashFormat: HashFormat

      The hashing format to use.

    • data: Buffer

      The data to hash and compare.

    Returns boolean

    true if the hashes match, false otherwise.