Smart Contracts and transactions allow users to implement elaborate constructions on cryptocurrency blockchains like Bitcoin and Ethereum. Many of these constructions, including operational payment channels and atomic swaps, use a building block called Hashed Time-Locked Contract (HTLC). In this work, we distill from HTLC a specification (HTLC-Spec), and present an implementation called Mutual-Assured-Destruction Hashed Time-Locked Contract (MAD-HTLC). MAD-HTLC employs a novel approach of utilizing the existing blockchain operators, called miners, as part of the design. If a user misbehaves, MAD-HTLC incentivizes the miners to confiscate all her funds. We prove MAD-HTLC's security using the UC framework and game-theoretic analysis. We demonstrate MAD-HTLC's efficacy and analyze its overhead by instantiating it on Bitcoin's and Ethereum's operational blockchains. Notably, current miner software makes only little effort to optimize revenue, since the advantage is relatively small. However, as the demand grows and other revenue components shrink, miners are more motivated to fully optimize their fund intake. By patching the standard Bitcoin client, we demonstrate such optimization is easy to implement, making the miners natural enforcers of MAD-HTLC. Finally, we extend previous results regarding HTLC vulnerability to bribery attacks. An attacker can incentivize miners to prefer her transactions by offering high transaction fees. We demonstrate this attack can be easily implemented by patching the Bitcoin client, and use game-theoretic tools to qualitatively tighten the known cost bound of such bribery attacks in presence of rational miners. We identify bribe opportunities occurring on the Bitcoin and Ethereum main networks where a few dollars bribe could yield tens of thousands of dollars in reward (e.g., \$2 for over \$25K).
翻译:智能合同和交易允许用户在比特币和埃特隆等加密货币链中实施精密的建筑。 许多这些建筑,包括操作性支付渠道和原子交换,使用名为Hashed Tim-Locked Contract(HTLC)的建筑块。 在这项工作中,我们从HTLC提取了一个规格(HTLC-Spec),并推出一个名为“相互确保-销毁违约时间列表合同(MAD-HTLC) ” 的实施。MAD-HTLC 更倾向于采用新颖的方法,利用现有的连锁操作程序操作,即采矿业操作者,称为矿工,作为设计的一部分,使用操作操作操作操作性付款渠道。MAD-HTLC 激励矿工没收所有资金。我们用UC框架和游戏理论分析来证明MAD-HTLC的安全性。我们通过在Bitcoin和Ethe Eceum 操作链中即时即刻性交易效率分析其效率。 很显然,当前的矿工软件只能轻易地努力优化收益交易。我们不断优化的客户,因此才开始使用。