design for taproot + musig2 swap #225
007harshmahajan
started this conversation in
General
Replies: 1 comment
-
I have made the following modification. Let me know if it makes sense. There is no separate funding and contract transaction now. All together in one transaction via taproot tree. now referred to as the At the end of the round, instead of privkey handover, they send each other the partial sig for the keypath spend. With this partial sig they can individually construct the musig and spend the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Coinswap with taproot and Musig2
Swaping the coins with taproot as scripting and Musig2 key aggregation will improve privacy of swap's as it will look same like any other taproot treansaction
Changes from exixting implementation coinswap
taproot contract
Key aggregation for Multi signature
Both the parties will supply pub key and single use pub nonce, both are derived from priv key and priv nonce respectivly.
Key-path spending
2-2 aggregated key is used as internal key for script less spending of coins. this will require both private keys and private nonce.
Script-path spend
It contain 2 scripts path, one with timelock and other hashlock
Bitcoin's script will be used to code these timelock and hashlock conditions. Diagrams of the transactions:
Message protocol
Transaction construction
Tapscript descriptors
Beta Was this translation helpful? Give feedback.
All reactions