-
Notifications
You must be signed in to change notification settings - Fork 24
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
transient keys for signing invoice requests #133
transient keys for signing invoice requests #133
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
There was a problem hiding this 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 :)
@@ -590,7 +590,7 @@ impl InvoicePayer for Client { | |||
|
|||
let blinded_payment_paths = tonic_lnd::lnrpc::BlindedPaymentPath { | |||
blinded_path, | |||
total_cltv_delta: u32::from(cltv_expiry_delta) + 120, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
6cb8a75
to
30ec757
Compare
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.
30ec757
to
b1047ed
Compare
@dunxen Thanks for the review as always! Just pushed up those changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, LGTM!
We should use a new key to sign each invoice request to improve sender privacy. Closes #116