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

Increase blinded path expiry #718

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Increase blinded path expiry #718

merged 2 commits into from
Oct 17, 2024

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Oct 17, 2024

Blinded paths should expire when we will start rejecting payments for the corresponding invoice: this is thus related to the bolt 12 invoice expiry that we used.

However, when we receive an HTLC, its cltv_expiry is set to a future block height, which must be at least min_final_expiry_delta in the future. Payers may add some additional margin to the current block height to protect against delays in HTLC relay and protect the privacy of the payment. So we must add a large enough cltv_expiry_delta to the invoice expiry to account for those.

Blinded paths should expire when we will start rejecting payments for
the corresponding invoice: this is thus related to the bolt 12 invoice
expiry that we used.

However, when we receive an HTLC, its `cltv_expiry` is set to a future
block height, which must be at least `min_final_expiry_delta` in the
future. Payers may add some additional margin to the current block
height to protect against delays in HTLC relay and protect the privacy
of the payment. So we must add a large enough `cltv_expiry_delta` to
the invoice expiry to account for those.
We add a helper function to decrypt the `pathId` included in the
invoice's blinded path.
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

Tested against eclair.

@t-bast t-bast merged commit eed5998 into master Oct 17, 2024
2 checks passed
@t-bast t-bast deleted the increase-blinded-path-expiry branch October 17, 2024 08:36
pm47 added a commit to ACINQ/phoenixd that referenced this pull request Oct 17, 2024
This is a bugfix release, the main change is ACINQ/lightning-kmp#718.
@dpad85 dpad85 mentioned this pull request Oct 18, 2024
vincenzopalazzo pushed a commit to vincenzopalazzo/phoenixd that referenced this pull request Nov 7, 2024
This is a bugfix release, the main change is ACINQ/lightning-kmp#718.
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.

3 participants