Detailed protocol design for routed multi-transaction CoinSwap



Summary:

The conversation discusses the implementation of watchtowers for CoinSwaps to prevent theft attempts. The use of absolute timelocks is suggested as it allows setting a timer without risking loss of funds. However, it combines two time periods, making it inconvenient for makers. A solution using Scriptless Script 2p-ECDSA/Schnorr and an absolute timelock is proposed. Watchtowers guarding CoinSwaps with absolute timelocks would need to know the funding outpoint they are guarding and watch block height, which affects privacy. To make these watchtowers compatible with Lightning watchtowers, a solution is suggested where the timeout tx pays out to a `OP_IF OP_CHECKSEQUENCEVERIFY OP_DROP OP_ELSE OP_ENDIF OP_CHECKSIGVERIFY`. The revocation key would be the same private key turned over at the end of the CoinSwap. The proposed solution offers more privacy and security while reducing the attack surface on privacy.


Updated on: 2023-06-14T03:23:42.609126+00:00