Skip to content

Feature Request: Support for HODL Invoices and Proxy Invoices #50

@bitwalt

Description

@bitwalt

We would like to open a discussion and propose the addition of HODL invoices and Proxy invoices support in the RGB Lightning Node (RLN). These features would enable better coordination for atomic swaps and advanced cross-protocol HTLC-based interactions (e.g. RGB <> Taproot Assets swaps).


Draft API Design proposal

1. HODL Invoice

  • POST /hodlinvoice: Create a HODL invoice. It will not be automatically settled when paid.
  • POST /settleinvoice: Manually settle a previously created HODL invoice (if paid).
  • POST /cancelinvoice: Cancel a HODL invoice, even if it's been paid.

2. Proxy Invoice

  • POST /proxyinvoice: Takes a Lightning invoice as input and returns a new proxy HODL invoice with the same payment hash.
    • When the proxy is paid, RLN should pay the original invoice.
    • When the original invoice is settled and the preimage is known, the proxy invoice is then settled using the same preimage.

🔗 References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions