Skip to content

Keys Interface Simplification #225

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 6 commits into from
Oct 27, 2018

Conversation

TheBlueMatt
Copy link
Collaborator

This is #214 with some slight changes here and there to simplify things.

@TheBlueMatt
Copy link
Collaborator Author

Note that I didn't bother to review the ChannelMonitor events generation that closely, but had glanced at it in a previous version and we can fix it up later as we write tests for it.

@TheBlueMatt TheBlueMatt force-pushed the 2018-10-214-redo branch 2 times, most recently from 1485453 to 92d9de6 Compare October 26, 2018 18:11
Antoine Riard added 6 commits October 27, 2018 09:34
Extend KeyStorage with delayed_payment_base_key and per_commitment_point
to derive local_delayed private key
Move ChannelKeys into keysinterface for generate a set of it from
master_seed and change return type to panic on bogus data
…nnel

Drop channel_monitor_claim_key from ChannelKeys
@TheBlueMatt TheBlueMatt merged commit f1eb463 into lightningdevkit:master Oct 27, 2018
let mut seed = [0; 32];
for (arr, slice) in seed.iter_mut().zip((&channel_pubkey.public_key.serialize()[0..32]).iter()) {
*arr = *slice;
}
Copy link
Contributor

@yuntai yuntai Oct 27, 2018

Choose a reason for hiding this comment

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

simpler with copy_from_slice()?
[0u8; 32] will look better.
Lastly, wouldn't be seed always same for a fixed channel_master_key?

This just missed the merge and after a merge and a comment doesn't seem to trigger a notification so I try @TheBlueMatt

@TheBlueMatt TheBlueMatt mentioned this pull request Oct 28, 2018
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