Detailed protocol design for routed multi-transaction CoinSwap



Summary:

In a conversation between Antoine and ZmnSCPxj, they discussed the current and previous model of transactions involving HTLC-timeout or HTLC-success. ZmnSCPxj described a new technique that could reduce the risk involved in the transaction process. The attack in question was related to private key turnover after hash-lock resolution, which allowed the contract tx to deduct fees from its input to pay for itself. To reduce this risk, ZmnSCPxj suggested swapping A->B->A and then A->C->A, which would limit its funding lockup to one week. Alternatively, takers could pay higher fees for smaller swaps that reduce their lockup risk, or pay less with greater total lockup risk. ZmnSCPxj also proposed exploring this construction further, minus the downside of producing weird spend patterns due to next hop maker bidding with another party.


Updated on: 2023-06-14T03:12:39.077327+00:00