You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current coinswap protocol operates by constructing Hash Time Locked Contracts (HTLCs) between Takers and Makers. These HTLCs are expressed as WSH scripts. The contract Redeemscript is defined here.
Further optimization of HTLC contracts can be achieved by leveraging Taproot and Musig2. In this optimization, the individual hashlock and timelock scripts are represented as two leaves of Taproot at a depth of 1. The internal public key becomes the aggregated Musig2 key, combining the public keys of the Sender and Receiver.
This optimization allows for the consolidation of funding and contract transactions into a single Taproot transaction, reducing the cost of the swap and providing anonymity akin to all Taproot transactions.
Expected Outcomes
Translation of the WSH contract into a Taproot contract.
Aggregation of internal keys using Musig2.
Successful swap implementation using Taproot and Musig2.
Swap HTLC via Taproot+Musig2
Description
The current coinswap protocol operates by constructing Hash Time Locked Contracts (HTLCs) between Takers and Makers. These HTLCs are expressed as
WSH
scripts. The contract Redeemscript is defined here.Further optimization of HTLC contracts can be achieved by leveraging Taproot and Musig2. In this optimization, the individual hashlock and timelock scripts are represented as two leaves of Taproot at a depth of 1. The internal public key becomes the aggregated Musig2 key, combining the public keys of the Sender and Receiver.
This optimization allows for the consolidation of funding and contract transactions into a single Taproot transaction, reducing the cost of the swap and providing anonymity akin to all Taproot transactions.
Expected Outcomes
WSH
contract into aTaproot
contract.Resources
Skills Required
Mentor(s)
@rajarshimaitra
Difficulty
Hard
Competency Test
The text was updated successfully, but these errors were encountered: