Skip to content

transient keys for signing invoice requests#133

Merged
orbitalturtle merged 2 commits intolndk-org:masterfrom
orbitalturtle:transient-keys-2
Aug 13, 2024
Merged

transient keys for signing invoice requests#133
orbitalturtle merged 2 commits intolndk-org:masterfrom
orbitalturtle:transient-keys-2

Conversation

@orbitalturtle
Copy link
Copy Markdown
Collaborator

@orbitalturtle orbitalturtle commented Jul 11, 2024

We should use a new key to sign each invoice request to improve sender privacy. Closes #116

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (9c5727f) to head (b1047ed).

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #133   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files           1       1           
  Lines         105     105           
======================================
  Misses        105     105           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@orbitalturtle orbitalturtle requested a review from dunxen August 9, 2024 20:41
@orbitalturtle orbitalturtle added this to the 0.2.0 milestone Aug 9, 2024
Copy link
Copy Markdown
Collaborator

@dunxen dunxen left a comment

Choose a reason for hiding this comment

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

Generally LGTM! Just some nits and questions. Also needs rebase now :)


let blinded_payment_paths = tonic_lnd::lnrpc::BlindedPaymentPath {
blinded_path,
total_cltv_delta: u32::from(cltv_expiry_delta) + 120,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What was the context for this extra delta before?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

IIRC in earlier versions of our fork of ldk-sample, payments wouldn't work without this addition. I think I got the exact number from the notes in Carla's PR here: lightningnetwork/lnd#7267 But I think CLN doesn't like this additional delta & newer version of LDK don't need it. I'll add a comment to the commit for more clarification.

We should use a new key to sign each invoice request to improve sender privacy
and to ensure we can pay a particular CLN offer more than once.
In earlier versions of ldk-sample we couldn't make a payment without this
additional delta. But CLN doesn't like this additional delta and it's no longer
necessary for payments to ldk-sample.
@orbitalturtle
Copy link
Copy Markdown
Collaborator Author

@dunxen Thanks for the review as always! Just pushed up those changes.

@orbitalturtle orbitalturtle requested a review from dunxen August 13, 2024 06:12
Copy link
Copy Markdown
Collaborator

@dunxen dunxen left a comment

Choose a reason for hiding this comment

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

Great, LGTM!

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.

Bug: second payment to CLN offer fails

2 participants