Skip to content

Wrap transaction creation keys #664

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
Aug 10, 2020

Conversation

devrandom
Copy link
Member

@devrandom devrandom commented Aug 9, 2020

And make them public. This allows calls to InMemoryChannelKeys.

The wrapping of TxCreationKeys makes it obvious to signer implementers that the pre-derived keys are a local cache and should not be trusted in a validating signer.

@codecov
Copy link

codecov bot commented Aug 9, 2020

Codecov Report

Merging #664 into master will increase coverage by 0.82%.
The diff coverage is 80.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #664      +/-   ##
==========================================
+ Coverage   91.30%   92.12%   +0.82%     
==========================================
  Files          35       35              
  Lines       21400    23242    +1842     
==========================================
+ Hits        19539    21412    +1873     
+ Misses       1861     1830      -31     
Impacted Files Coverage Δ
lightning/src/ln/chan_utils.rs 96.25% <66.66%> (-0.93%) ⬇️
lightning/src/chain/keysinterface.rs 95.04% <100.00%> (+0.01%) ⬆️
lightning/src/ln/channel.rs 89.47% <100.00%> (+2.82%) ⬆️
lightning/src/ln/functional_tests.rs 97.63% <100.00%> (+0.48%) ⬆️
lightning/src/util/enforcing_trait_impls.rs 100.00% <100.00%> (ø)
lightning/src/ln/channelmanager.rs 89.11% <0.00%> (+3.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d735a24...8058202. Read the comment docs.

TheBlueMatt
TheBlueMatt previously approved these changes Aug 10, 2020
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.

The two new commits basically LGTM. Would be nice to add a new sentence to the old TxCreationKeys docs to indicate that its the "trusted" version, and then can just make the full key set pub.

@devrandom
Copy link
Member Author

doc and pub change done

Allows calling of InMemoryChannelKeys methods.

The wrapping makes it obvious to signer implementers that the pre-derived keys are a local cache and should not be trusted in a validating signer.
This makes it obvious to signer implementers that the pre-derived keys are a local cache and should not be trusted in a validating signer.
@devrandom
Copy link
Member Author

I made this PR independent of #662 and incorporated the TxCreationKeys constructor visibility change here.

TheBlueMatt
TheBlueMatt previously approved these changes Aug 10, 2020
@TheBlueMatt TheBlueMatt merged commit 093fcab into lightningdevkit:master Aug 10, 2020
@TheBlueMatt
Copy link
Collaborator

Oops, got trigger-happy with a "nit" commit. Oh well, we'll survive.

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