Skip to content

Conversation

@TheBlueMatt
Copy link
Collaborator

In 7f0fd86, channel_keys_id was added as an argument to SignerProvider::get_destination_script, allowing implementors to generate a new script for each channel.

This is great, however users then have no way to re-derive the corresponding private key when they ultimately receive a SpendableOutputDescriptor::StaticOutput. Instead, they have to track all the addresses as they derive them separately. In many cases this is fine, but we should support both deployments, which we do here by simply including the missing channel_keys_id for the user.

In 7f0fd86, `channel_keys_id` was
added as an argument to `SignerProvider::get_destination_script`,
allowing implementors to generate a new script for each channel.

This is great, however users then have no way to re-derive the
corresponding private key when they ultimately receive a
`SpendableOutputDescriptor::StaticOutput`. Instead, they have to
track all the addresses as they derive them separately. In many
cases this is fine, but we should support both deployments, which
we do here by simply including the missing `channel_keys_id` for
the user.
@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (146a291) 88.55% compared to head (d5710fd) 88.54%.

Files Patch % Lines
lightning/src/sign/mod.rs 66.66% 1 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2749      +/-   ##
==========================================
- Coverage   88.55%   88.54%   -0.02%     
==========================================
  Files         114      114              
  Lines       89417    89420       +3     
  Branches    89417    89420       +3     
==========================================
- Hits        79186    79177       -9     
- Misses       7859     7863       +4     
- Partials     2372     2380       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wpaulino wpaulino merged commit 83af951 into lightningdevkit:main Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants