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

Add support for sciddir_or_pubkey #2752

Merged
merged 12 commits into from
Nov 14, 2023
Merged

Add support for sciddir_or_pubkey #2752

merged 12 commits into from
Nov 14, 2023

Conversation

thomash-acinq
Copy link
Member

Offers (lightning/bolts#798) allow nodes to be identified using either the public key or a pair channel id and direction. The goal is to save bytes as channel id and direction only use 9 bytes instead of 33 for a public key.

@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 90.66667% with 7 lines in your changes missing coverage. Please review.

Project coverage is 85.85%. Comparing base (12adf87) to head (0500259).
Report is 101 commits behind head on master.

Files with missing lines Patch % Lines
...c/main/scala/fr/acinq/eclair/message/Postman.scala 89.47% 2 Missing ⚠️
...la/fr/acinq/eclair/payment/send/OfferPayment.scala 91.66% 2 Missing ⚠️
...r/acinq/eclair/payment/send/PaymentInitiator.scala 33.33% 2 Missing ⚠️
...scala/fr/acinq/eclair/payment/send/Autoprobe.scala 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2752      +/-   ##
==========================================
+ Coverage   85.82%   85.85%   +0.03%     
==========================================
  Files         216      216              
  Lines       18126    18158      +32     
  Branches      771      760      -11     
==========================================
+ Hits        15556    15590      +34     
+ Misses       2570     2568       -2     
Files with missing lines Coverage Δ
...r-core/src/main/scala/fr/acinq/eclair/Eclair.scala 55.69% <100.00%> (ø)
...n/scala/fr/acinq/eclair/json/JsonSerializers.scala 96.42% <ø> (ø)
.../scala/fr/acinq/eclair/message/OnionMessages.scala 80.00% <100.00%> (+0.28%) ⬆️
.../scala/fr/acinq/eclair/payment/Bolt12Invoice.scala 97.50% <100.00%> (ø)
...a/fr/acinq/eclair/payment/offer/OfferManager.scala 92.59% <100.00%> (ø)
...cinq/eclair/payment/receive/MultiPartHandler.scala 93.33% <ø> (ø)
...scala/fr/acinq/eclair/payment/send/Recipient.scala 98.52% <100.00%> (ø)
...src/main/scala/fr/acinq/eclair/router/Router.scala 94.39% <100.00%> (-0.39%) ⬇️
...la/fr/acinq/eclair/wire/protocol/OfferCodecs.scala 100.00% <100.00%> (ø)
...ala/fr/acinq/eclair/wire/protocol/OfferTypes.scala 96.36% <100.00%> (ø)
... and 4 more

... and 12 files with indirect coverage changes

---- 🚨 Try these New Features:

@thomash-acinq thomash-acinq marked this pull request as ready for review October 26, 2023 15:10
@thomash-acinq thomash-acinq requested a review from t-bast November 2, 2023 16:00
@t-bast
Copy link
Member

t-bast commented Nov 3, 2023

Can you rebase this PR before I start reviewing it?

@thomash-acinq
Copy link
Member Author

Rebased

Offers (lightning/bolts#798) allow nodes to be identified using either the public key or a pair channel id and direction.
The goal is to save bytes as channel id and direction only use 9 bytes instead of 33 for a public key.
thomash-acinq and others added 3 commits November 13, 2023 13:41
This is just an automated renaming:

* PaymentBlindedRoute -> PaymentBlindedContactInfo
* ResolvedPaymentBlindedRoute -> PaymentBlindedRoute
Remove parameter duplication by using a private class.
@t-bast t-bast mentioned this pull request Nov 14, 2023
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

Looks good to me, this is now quite clean! I've made two follow-up commits in #2776 to do some renaming and refactoring, nothing major but I think it slightly improves this.

@thomash-acinq
Copy link
Member Author

I've added your commits, I've just changed two comments which I thought could be misleading.

Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

👍

@thomash-acinq thomash-acinq merged commit 772e2b2 into master Nov 14, 2023
1 check passed
@thomash-acinq thomash-acinq deleted the sciddir_or_pubkey branch November 14, 2023 10:08
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.

3 participants