-
Notifications
You must be signed in to change notification settings - Fork 406
Move back to ChannelMonitor RemoteTxCache #610
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
TheBlueMatt
merged 25 commits into
lightningdevkit:master
from
ariard:2020-04-cache-in-monitor
May 28, 2020
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6b1afcc
Cache remote basepoint and remote_csv in new OnchainTxHandler::Remote…
275814c
Cache remote HTLC inside OnchainTxHandler::RemoteTxCache
6512e8a
Replace is_htlc in InputMaterial by InputDescriptor
824e318
Build witness_script for justice tx inside OnchainTxHandler
276c607
Move justice transaction signature behind ChanSigner
0a345c0
Build witness_script for remote htlc transactions inside
ea238a2
Move remote htlc transaction signature behind ChanSigner
f8ea748
Add KeysManager::derive_unique_start
2f4f0aa
Extend KeysInterface with derive_channel_keys
3188ac9
Remove SecretKey from DynamicOutputP2WSH descriptor
2c07f8e
Remove SecretKey from DynamicOuputP2WPKH descriptor
1d7ed17
Duplicate RemoteTxCache in ChannelMonitor
9455b49
Dedup RemoteTxCache by removing OnchainTxHandler copy
56ec6e0
Drop remote_csv from OnchainTxHandler, cache it in Monitor's cache
f655c51
Rename their_to_self_delay as on_local_tx_csv
3aef447
Rename RemoteTxCache as RemoteCommitmentTransaction and document better
7de03e1
Imp Writer/Reader for RemoteCommitmentTransaction
479e1c8
Dry-up witnessScript in sign_justice_transaction
06445b6
Dry-up witnessScript in sign_remote_htlc_transaction
4f84b05
Make derive_private_key public
03fa056
Make get_revokable_redeemscript
22daecb
Remove useless build warnings
42b731d
Document better DynamicOutputP2WSH
d0c5e9c
Significantly clarify key derivation and expose methods referenced
TheBlueMatt 81e358c
Add test_key_derivation_params
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
The docs here should likely be improved if we're making it pub.
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.
pub (crate) fn is enough for now
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.
Strongly disagree - you can't easily implement a ChannelKeys without it. Lets just write a comment :).