-
Notifications
You must be signed in to change notification settings - Fork 33
update taproot-updates.md #19
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
Conversation
taproot-updates.md
Outdated
| "tapleaf_2": " | ||
| # funds go to the remote node via a second-stage Claim-PTLC-success transaction by completing an adaptor sig, revealing the payment secret | ||
| # NB: we don't use musig2 here because it would force local and remote signatures to use the same sighash flags | ||
| <local_ptlcpubkey> OP_CHECKSIGVERIFY <remote_ptlcpubkey> OP_CHECKSIG |
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.
why are there two tapleaves when the only difference between the two is the order? one can be removed to save 32 vbytes
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.
this is only for readability, right?
- Save bytes in some scripts - Fix a script - Set sequence to 1 in second stage HTLC - Remove trailing whitespace
84f6784 to
a45c7b6
Compare
|
Thanks for the feedback! I have one main comment though: I don't want the scripts here to be efficient, I want them to be as readable as possible. They can indeed be optimized (as you noticed), but this document should stay high-level(ish). Optimizing the scripts will be done with miniscript once we integrate Taproot in the bolts, that's where your proposal will make more sense. Can you please remove the script optimizations and keep the other changes? Thanks 🙏 |
|
done |
t-bast
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!
see the review comments at the specific lines