-
Notifications
You must be signed in to change notification settings - Fork 2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2/?] - input: add taproot chan scripts, control block logic, and spending routines #7333
[2/?] - input: add taproot chan scripts, control block logic, and spending routines #7333
Commits on May 26, 2023
-
input: add PayToTaprootScript helper func
In this commit, we add a helper function to take a taproot output key and turn it into a v1 witness program.
Configuration menu - View commit details
-
Copy full SHA for 5f16e8e - Browse repository at this point
Copy the full SHA 5f16e8eView commit details -
input: add GenTaprootFundingScript based on musig2
In this commit, we add GenTaprootFundingScript, which'll return the taproot pkScript and output for a taproot+musig2 channel. This uses musig2 key aggregation with sorting activated. The final key produced uses a bip86 tweak, meaning that the output key provably doesn't commit to any script path. In the future, we may want to permit this, as then it allows for a greater degree of programmability of the funding output.
Configuration menu - View commit details
-
Copy full SHA for f233976 - Browse repository at this point
Copy the full SHA f233976View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbdc28e - Browse repository at this point
Copy the full SHA fbdc28eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 578a16a - Browse repository at this point
Copy the full SHA 578a16aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99066d7 - Browse repository at this point
Copy the full SHA 99066d7View commit details -
input: add tapscript utils for the sender HTLC script
Unlike the old HTLC scripts, we now need to handle the various control block interactions. As is, we opt to simply re-compute the entire tree when needed, as the tree only has two leaves.
Configuration menu - View commit details
-
Copy full SHA for 84b36ec - Browse repository at this point
Copy the full SHA 84b36ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eb9490 - Browse repository at this point
Copy the full SHA 8eb9490View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c10f28 - Browse repository at this point
Copy the full SHA 5c10f28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 006113a - Browse repository at this point
Copy the full SHA 006113aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e59b1b - Browse repository at this point
Copy the full SHA 3e59b1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a5151f - Browse repository at this point
Copy the full SHA 9a5151fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9485cc0 - Browse repository at this point
Copy the full SHA 9485cc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 110c29a - Browse repository at this point
Copy the full SHA 110c29aView commit details -
input: restore usage of NUMS key for to_remote output
In this commit, we restore usage of the NUMS key for the to remote output, as this allows a remote party to scan the chain in order to find their remote output that in emergency recovery scenarios.
Configuration menu - View commit details
-
Copy full SHA for 6aca853 - Browse repository at this point
Copy the full SHA 6aca853View commit details -
input: use script path for revocation clause for to_local output
In this commit, we modify the to_local script to use a script path for the revocation scenario. With this change, we ensure that the internal key is always revealed which means the anchor outputs can still always be swept.
Configuration menu - View commit details
-
Copy full SHA for 37079b2 - Browse repository at this point
Copy the full SHA 37079b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ef2306 - Browse repository at this point
Copy the full SHA 7ef2306View commit details -
input: use explicit CSV 1 script for to remote output
We undo the prior hack here to make the final script more readable. The difference is just 1 byte between the two.
Configuration menu - View commit details
-
Copy full SHA for 34a9cfb - Browse repository at this point
Copy the full SHA 34a9cfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 388a70c - Browse repository at this point
Copy the full SHA 388a70cView commit details