Cashu-TS - v3.3.0
    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.