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

    Function createHTLCsecret

    • Create an HTLC secret.

      Parameters

      • hash: string

        The HTLC hash to add to Secret.data (64 hex characters, stored lowercase).

      • Optionaltags: string[][]

        Optional. Additional P2PK tags.

      Returns string

      Use createHTLCHash() for hash creation.

      If the hash is not a 64-character hex string.