-
Notifications
You must be signed in to change notification settings - Fork 123
swap: HTLCV3 added #482
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
swap: HTLCV3 added #482
Conversation
bhandras
left a comment
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.
Thanks for reopening!
LGTM 🚀
| ) | ||
| copy(senderKey[:], senderPubKey.SerializeCompressed()) | ||
| copy(receiverKey[:], receiverPubKey.SerializeCompressed()) | ||
| copy(senderKey[:], senderPubKey.SerializeCompressed()) |
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.
nit: you can reverse the order of these two lines to make the diff smaller
|
Found some missing bits:
Code is mostly ready though: 63c8242 |
bhandras
left a comment
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.
Found a few things while trying to rebase #477 to this PR that I think are worth adding so undoing my approve for now. Should be easy to add them.
e6ff412 to
a038141
Compare
|
Addressed those gaps, and added some more documentation @bhandras |
5b048e3 to
a1cff82
Compare
3458925 to
af2d539
Compare
| copy(receiverKey[:], receiverPubKey.SerializeCompressed()) | ||
| copy(senderKey[:], senderPubKey.SerializeCompressed()) | ||
|
|
||
| randomSharedKey, err := hex.DecodeString( |
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.
Not required now, but It'd be cool to have a unit test for keyspend as well.
5c6d3ed to
a3d2710
Compare
bhandras
left a comment
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.
LGTM 🚀
In this commit we add the version 3 htlc, which is implemented with taproot script spending the two payment paths: the claim path case, and the timeout case.
a3d2710 to
dec6dd7
Compare
This is duplicate of #473 which was erroneously merged and reverted by #481.