Skip to content

feat: alby api for lightning side of gateway#56

Draft
Kodylow wants to merge 1 commit intomasterfrom
alby
Draft

feat: alby api for lightning side of gateway#56
Kodylow wants to merge 1 commit intomasterfrom
alby

Conversation

@Kodylow
Copy link
Owner

@Kodylow Kodylow commented Jan 19, 2024

This implements the PAY side of the lightning gateway using the Alby API, with no changes alby side.

To implement the RECEIVE side, we'd have to implement a webhook or htlc interceptor form the alby side. See route_htlcs and complete_htlc.

Pending Questions:

  1. Is the receiver pubkey for any alby invoice always the 030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3 aliased to getalby.com? If that changes, we'd need a way to get that through the alby api, but from my hitting get invoice and hitting a bunch of different getalby.com lightning addresses it looks like it's always that one

  2. There's a couple nuances about private payments that are worth discussing and depend on Alby's API architecture

  3. Are Alby pay requests via the API idemompotent? If not we have to use check_status so the gateway doeesn't try to pay the invoice twice. I think we can use the existing GET status endpoints for this but it's redundant to do so if the pay API is idempotent.

@Kodylow Kodylow marked this pull request as draft January 19, 2024 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant