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

Rename OfferIssuerId #720

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Rename OfferIssuerId #720

merged 1 commit into from
Oct 17, 2024

Conversation

t-bast
Copy link
Member

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

The OfferIssuerId was previously named OfferNodeId, but its usage changed when it was renamed: it doesn't necessarily match a lightning node_id and can instead be a completely unrelated public key. Note that we should probably also rename this in eclair if it hasn't already been done.

It can now be included in combination with blinded paths: when that happens, the blinded paths must be used in priority to reach the node as the issuer_id may not match a network node_id at all (or may even match an unrelated node).

I'm clarifying this and getting rid of contact_node_ids because for #719 I would like to use as contact_node_id:

  • the issuer_id if included
  • otherwise the last blinded_node_id of the first path
  • (whereas we were previously doing the opposite)

This makes more sense for wallets that generate multiple offers with different blinded paths each time, but keep the same issuer_id.

The `OfferIssuerId` was previously named `OfferNodeId`, but its usage
changed when it was renamed: it doesn't necessarily match a lightning
`node_id` and can instead be a completely unrelated public key.

It can now be included in combination with blinded paths: when that
happens, the blinded paths must be used in priority to reach the node
as the `issuer_id` may not match a network `node_id` at all (or may
even match an unrelated node).
@t-bast t-bast requested a review from thomash-acinq October 17, 2024 10:12
@t-bast t-bast merged commit f86fffe into master Oct 17, 2024
2 checks passed
@t-bast t-bast deleted the offer-issuer-id branch October 17, 2024 11:03
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.

2 participants