Skip to content

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

Merged
merged 3 commits into from
Jan 20, 2020

Conversation

devrandom
Copy link
Member

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 in Channel?

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a 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.

@devrandom
Copy link
Member Author

OK, the struct is now used in Channel.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a 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.

@devrandom
Copy link
Member Author

(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 their_unwrapped_funding_pubkey?

This does reduce verbosity in four callsites.

@TheBlueMatt
Copy link
Collaborator

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....

@devrandom
Copy link
Member Author

Right, things will be cleaner once the InboundChannel / OutboundChannel is implemented.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt 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. 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.

@TheBlueMatt TheBlueMatt merged commit f263b37 into lightningdevkit:master Jan 20, 2020
@devrandom devrandom deleted the txkeys branch January 21, 2020 19:45
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.

2 participants