Skip to content

Disallow user-provided payer_signing_pubkey - #3264

Merged
TheBlueMatt merged 4 commits into
lightningdevkit:mainfrom
jkczyz:2024-08-remove-user-provided-payer-id
Nov 12, 2024
Merged

Disallow user-provided payer_signing_pubkey#3264
TheBlueMatt merged 4 commits into
lightningdevkit:mainfrom
jkczyz:2024-08-remove-user-provided-payer-id

Conversation

@jkczyz

Copy link
Copy Markdown
Contributor

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
jkczyzforce-pushed the 2024-08-remove-user-provided-payer-id branch from ee91a75 to 0100dc4CompareAugust 22, 2024 20:44
@jkczyz
jkczyzforce-pushed the 2024-08-remove-user-provided-payer-id branch from 0100dc4 to 53ba3a9CompareSeptember 5, 2024 23:28
@codecov

codecovBot commented Sep 5, 2024

Copy link
Copy Markdown

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 linesPatch %Lines
lightning/src/ln/channelmanager.rs50.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
jkczyzforce-pushed the 2024-08-remove-user-provided-payer-id branch 3 times, most recently from 9838435 to 174a0f4CompareSeptember 11, 2024 20:24
@jkczyz
jkczyzforce-pushed the 2024-08-remove-user-provided-payer-id branch from 174a0f4 to 4baba94CompareSeptember 16, 2024 21:49
@jkczyz
jkczyzforce-pushed the 2024-08-remove-user-provided-payer-id branch from 4baba94 to 72aa0f8CompareOctober 2, 2024 16:50
@jkczyz
jkczyzforce-pushed the 2024-08-remove-user-provided-payer-id branch 2 times, most recently from 7334905 to 9cfc02fCompareNovember 7, 2024 22:59
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
jkczyzforce-pushed the 2024-08-remove-user-provided-payer-id branch from 9cfc02f to c331b67CompareNovember 11, 2024 22:18

@TheBlueMattTheBlueMatt left a comment

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.

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.

@TheBlueMatt
TheBlueMatt merged commit 70add14 into lightningdevkit:mainNov 12, 2024
Sign up for freeto 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

2 participants

@jkczyz@TheBlueMatt