Hashed Timelock (HTLC)-based atomic swap protocols enable the exchange of coins between two or more parties without relying on a trusted entity. This protocol is like the American call option without premium. It allows the finalization of a deal within a certain period. This puts the swap initiator at liberty to delay before deciding to proceed with the deal. If she finds the deal unprofitable, she just waits for the time-period of the contract to elapse. However, the counterparty is at a loss since his assets remain locked in the contract. The best he can do is to predict the initiator's behavior based on the asset's price fluctuation in the future. But it is difficult to predict as cryptocurrencies are quite volatile, and their price fluctuates abruptly. We perform a game theoretic analysis of HTLC-based atomic cross-chain swap to predict whether a swap will succeed or not. From the strategic behavior of the players, we infer that this model lacks fairness. We propose Quick Swap, a two-party protocol based on hashlock and timelock that fosters faster settlement of the swap. The parties are required to lock griefing-premium along with the principal amount. If the party griefs, he ends up paying the griefing-premium. If a party finds a deal unfavorable, he has the provision to cancel the swap. We prove that Quick Swap is more participant-friendly than HTLC-based atomic swap. Our work is the first to propose a protocol to ensure fairness of atomic-swap in a cyclic multi-party setting.
翻译:HTLC (HTLC) 的原子互换协议使两个或两个以上当事方之间能够不依赖信任的实体而交换硬币。 协议就像美国调价选项一样, 没有加价。 它允许在一段时间内完成交易。 这使得互换启动人可以自由推迟, 然后再决定交易。 如果她发现交易无利可图, 她只是等待着合同到期。 但是, 对手正在损失着他的资产仍然被锁定在合同中。 他所能做的就是根据资产在未来价格波动的基础上预测发起人的行为。 但是, 很难预测出一个交易在一段时间内完成交易。 这让互换启动人可以在决定交易之前自由推迟。 我们对基于HTLC的原子跨链互换进行游戏性分析, 以预测互换是否成功。 从玩家的战略行为来看, 我们推论这个模式缺乏公平性。 我们提议快速互换, 双方协议的基础是基于加速资产价格波动和时间锁, 加快资产价格波动的将来的价格波动。 但是, 很难预测出一个不易变价的货币交易会突然波动交易。 我们的一方需要做出一个痛苦协议。 向一个不妥协协议。 如果支付协议, 我们的一方支付, 我们的支付, 我们的一方需要一个不激烈交易, 我们的一方, 支付, 支付, 支付, 支付, 支付一个不激烈协议, 支付, 支付, 支付, 支付一个交易方将支付一个交易方将支付, 支付, 支付一个不支付一个交易方将支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付, 支付 支付, 支付 支付 支付 支付 支付 支付 支付, 支付 支付 支付 支付 支付 支付 支付, 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付 支付