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

Disallow user-provided payer_signing_pubkey #3264

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jkczyz
Copy link
Contributor

@jkczyz jkczyz commented Aug 21, 2024

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.

@jkczyz jkczyz force-pushed the 2024-08-remove-user-provided-payer-id branch from ee91a75 to 0100dc4 Compare August 22, 2024 20:44
@jkczyz jkczyz force-pushed the 2024-08-remove-user-provided-payer-id branch from 0100dc4 to 53ba3a9 Compare September 5, 2024 23:28
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 99.82699% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.64%. Comparing base (fcc5973) to head (9cfc02f).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/channelmanager.rs 50.00% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

@jkczyz jkczyz force-pushed the 2024-08-remove-user-provided-payer-id branch 3 times, most recently from 9838435 to 174a0f4 Compare September 11, 2024 20:24
@jkczyz jkczyz force-pushed the 2024-08-remove-user-provided-payer-id branch from 174a0f4 to 4baba94 Compare September 16, 2024 21:49
@jkczyz jkczyz force-pushed the 2024-08-remove-user-provided-payer-id branch from 4baba94 to 72aa0f8 Compare October 2, 2024 16:50
@jkczyz jkczyz force-pushed the 2024-08-remove-user-provided-payer-id branch from 72aa0f8 to 7334905 Compare November 5, 2024 17:07
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.
@jkczyz jkczyz force-pushed the 2024-08-remove-user-provided-payer-id branch from 7334905 to 9cfc02f Compare November 7, 2024 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop user-provided payer_id from InvoiceRequestBuilder
1 participant