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

    Function parseHTLCSecret

    • Parse an HTLC Secret and validate NUT-10 shape and NUT-11 tag-level constraints.

      Parameters

      • secret: string | Secret

        The Proof secret.

      Returns Secret

      Secret object.

      If the secret is oversized or malformed, or is not an HTLC.