Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Support async signing for V2 channel establishment #3411
base: main
Are you sure you want to change the base?
Support async signing for V2 channel establishment #3411
Changes from all commits
3805e48
846faf6
53fc264
92018f6
405f3ad
c8bbcff
770e161
6db89d7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What's the reasoning for discarding error info here? The signer may return an error.
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.
Signer returning an error indicates async signing. At least that's how the other async signing operates. Looks like the
EcdsaChannelSigner::sign_counterparty_commitment
docs weren't updated likeChannelSigner::get_per_commitment_point
were. Let me do that in this PR.@TheBlueMatt Wonder if we should change the interface to use an
Option
instead of aResult
onceasync_signing
configuration parameter is dropped?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.
We should probably clean up the API, yea, but lets not conflict with #3109 if at all possible.
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.
Yeah, honestly I'm not sure how to avoid the
Option
without introducing a new state variant, which is something we'd prefer to avoid, as discussed.