Skip to content

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.
@t-bast t-bast requested review from pm47 and thomash-acinq October 17, 2024 01:31
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.

4 participants