Cashu-TS - v4.0.0-rc3
    Preparing search index...

    Function verifyHTLCHash

    • Verify an HTLC hash/preimage pair.

      Parameters

      • preimage: string

        As a 64-character lowercase hexadecimal string.

      • hash: string

        As a 64-character lowercase hexadecimal string.

      Returns boolean

      True if preimage calculates the same hash, False otherwise.