Fair exchange protocols let two mutually distrustful parties exchange digital data in a way that neither party can cheat. They have various applications such as the exchange of digital items, or the exchange of digital coins and digital services between a buyer/client and seller/server. In this work, we formally define and propose a generic blockchain-based construction called "Recurring Contingent Service Payment" (RC-S-P). It (i) lets a fair exchange of digital coins and verifiable service reoccur securely between clients and a server while ensuring that the server is paid if and only if it delivers a valid service, and (ii) ensures the parties' privacy is preserved. RC-S-P supports arbitrary verifiable services, such as "Proofs of Retrievability" (PoR) or verifiable computation and imposes low on-chain overheads. Our formal treatment and construction, for the first time, consider the setting where either client or server is malicious. We also present a concrete efficient instantiation of RC- S-P when the verifiable service is PoR. We implemented the concrete instantiation and analysed its cost. When it deals with a 4-GB outsourced file, a verifier can check a proof in only 90 milliseconds, and a dispute between a prover and verifier is resolved in 0.1 milliseconds. At CCS 2017, two blockchain-based protocols were proposed to support the fair exchange of digital coins and a certain verifiable service; namely, PoR. In this work, we show that these protocols (i) are susceptible to a free-riding attack which enables a client to receive the service without paying the server, and (ii) are not suitable for cases where parties' privacy matters, e.g., when the server's proof status or buyer's file size must remain private from the public. RC- S-P simultaneously mitigates the above attack and preserves the parties' privacy.
翻译:公平交换协议可以让两个互相不信任的参与方以一种双方无法作弊的方式交换数字数据。它们有各种应用,例如数字物品的交换,或买家/客户与卖家/服务器之间的数字货币和数字服务的交换。在这项工作中,我们正式定义并提出了一种基于区块链的通用构造,称为“经常性的有条件服务付款”(RC-S-P)。它(i)让客户和服务器之间的数字货币和可验证服务的公平交换在确保服务器提供有效服务且只有在此情况下才向服务器支付的情况下安全地重新发生,并且(ii)确保保护各方的隐私。RC-S-P支持任意可验证服务,例如“可检索性证明”(PoR)或可验证计算,并强加了较低的链上开销。我们的正式处理和构造首次考虑了其中一个客户或服务器是恶意的情况。当可验证服务为PoR时,我们还呈现了具体有效的实例化RC-S-P。我们实现了具体的实例化,并分析了其成本。当它处理一个4GB的外包文件时,验证器可以在仅90毫秒内检查一个证明,而证明者和验证器之间的争议在0.1毫秒内得到解决。在CCS2017上,提出了两种基于区块链的协议来支持数字货币和特定可验证服务,即PoR的公平交换。在这项工作中,我们表明这些协议(i)易受到免费攻击,使客户可以在不支付服务器的情况下接收服务,(ii)不适用于派对隐私事项,例如服务器的证明状态或买方的文件大小必须与公众保持私密。RC-S-P同时减轻了以上攻击,并保护了各方的隐私。