-
Notifications
You must be signed in to change notification settings - Fork 405
Disallow user-provided payer_signing_pubkey
#3264
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
Disallow user-provided payer_signing_pubkey
#3264
Conversation
ee91a75
to
0100dc4
Compare
0100dc4
to
53ba3a9
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3264 +/- ##
========================================
Coverage 89.63% 89.64%
========================================
Files 128 128
Lines 104891 105163 +272
Branches 104891 105163 +272
========================================
+ Hits 94024 94278 +254
- Misses 8156 8181 +25
+ Partials 2711 2704 -7 ☔ View full report in Codecov by Sentry. |
9838435
to
174a0f4
Compare
174a0f4
to
4baba94
Compare
4baba94
to
72aa0f8
Compare
7334905
to
9cfc02f
Compare
When creating an InvoiceRequests, users may choose to either use a transient signing pubkey generated by LDK or provide a static one. Disallow the latter as it allows users to reuse the same pubkey, which results in poor sender privacy.
Now that InvoiceRequest::payer_signing_pubkey is always a derived pubkey, there is no longer a need for PayerSigningPubkeyStrategy.
Now that invoice requests are signed using transient keys only, remove the corresponding signing method from NodeSigner since it is never used.
9cfc02f
to
c331b67
Compare
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.
There's a big pile of test changes, but its entirely mechanical. The actual diff is ~entirely remove-only except for some doc changes which seem straightforward. Just gonna land this.
When creating an
InvoiceRequests
, users may choose to either use a transient signing pubkey generated by LDK or provide a static one. Disallow the latter as it allows users to reuse the same pubkey, which results in poor sender privacy.Based on #3237.
Fixes #3198.