Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway has built-in LDK lightning node (and it generates invoices rather than the client) #4338

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

tvolk131
Copy link
Contributor

VERY broken, do not merge!

@tvolk131 tvolk131 changed the title Gateway generates invoice Gateway has built-in LDK lightning node and generates invoices Feb 15, 2024
@tvolk131 tvolk131 changed the title Gateway has built-in LDK lightning node and generates invoices Gateway has built-in LDK lightning node (and it generates invoices rather than the client) Feb 15, 2024
invoice.expiry_time().as_secs()
);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to verify same payment hash

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Good catch, thanks!

);
}

let invoice: Bolt11Invoice = response.json().await?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably makes sense to have this as a json object so it can be more extensible in the future

@@ -37,6 +37,7 @@ ln-gateway = { version = "0.3.0-alpha", package = "fedimint-ln-gateway", path =
ldk-node = { package = "fedimint-ldk-node", version = "0.1.0" }
futures = "0.3"
lightning-invoice = "0.26.0"
lightning-invoice29 = { package = "lightning-invoice", version = "0.29.0" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ldk-node re-exports lightning invoice. Can probably just use that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires #4354 since we're currently using fedimint-ldk-node v0.1.0 which re-exports lightning-invoice v0.23.0 instead of v0.29.0. Leaving this open until that PR is merged.

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.

None yet

2 participants