Cashu-TS - v4.12.0
    Preparing search index...

    Function bolt11PreimageMatches

    • Internal

      Whether a hex preimage hashes to a BOLT11 invoice's payment hash.

      Parameters

      • pr: string
      • preimage: string

      Returns boolean

      If the invoice cannot be parsed; a malformed preimage is simply false.