-
Notifications
You must be signed in to change notification settings - Fork 411
Provide remote channel public keys to signer #451
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
Conversation
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.
Also, should we use ChannelPublicKeys to group the remote pubkeys in Channel?
Yea, if we're gonna have a struct for it, would probably be nice to use it in the Channel itself IMO.
OK, the struct is now used in |
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.
Looking good. Not a big fan of he new funding_pubkey wrapper, but its not a huge deal.
(sorry for multiple notifications on the unwrap comment, github is having an issue. I'm not able to attach this to the actual comment anymore) How about if we rename this to This does reduce verbosity in four callsites. |
Hmmm, alright, I mean it doesn't matter tooo much cause there's a number of things that are only available after they provide an accept_channel.... |
Right, things will be cleaner once the |
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.
Looks good. Just two small nits. I went ahead and squashed for review anyway, and added demo comments at https://github.com/TheBlueMatt/rust-lightning/tree/2020-01-451-nits so feel free to just take that branch and I'll merge.
This allows the signer to verify that the per-tx public keys are correctly derived from our keys and the remote pubkeys/basepoints.
Also, should we use
ChannelPublicKeys
to group the remote pubkeys inChannel
?