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

offer: expose a way to derive a payer-id from the metadata #7171

Conversation

vincenzopalazzo
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo commented Mar 23, 2024

The invreq_payerid is obtained during the offer fetching process by tweaking the bolt12 public key (which is derived from the main secret).

Currently, there exists no means to validate our bolt 12 invoice as there is no public API accessible for retrieving the bolt12 public key and performing the necessary tweak.

So, this commit introduces the functionality to address this limitation.

This should be an valid alternative to this #7123

I finger out that I reading code skill are better than reading and understand a bolt, I am arriving the point of full understand bolt12 (maybe)

The `invreq_payerid` is obtained during the offer fetching process
by tweaking the bolt12 public key (which is derived from the main secret).

Currently, there exists no means to validate our bolt 12 invoice as
there is no public API accessible for retrieving the bolt12 public
key and performing the necessary tweak.

So, this commit introduces the functionality to address this limitation.

Changelog-Added: offer: expose a way to derive a payer-id from the metadata
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is adding a test for the predecessor commit
to verify that we are able to add the node (payer) public
key inside the invoice request.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@endothermicdev endothermicdev added this to the v24.05 milestone Apr 20, 2024
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@vincenzopalazzo vincenzopalazzo modified the milestones: v24.05, v24.08 May 27, 2024
@rustyrussell
Copy link
Contributor

This has changed, so it would now be possible. In particular I changed it to be a tweak of our node id, based on a secret you can get via makesecret.

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