On HTLC-Based Protocols for Multi-Party Cross-Chain Swaps

Authors Emily Clark, Chloe Georgiou, Katelyn Poon, Marek Chrobak



PDF
Thumbnail PDF

File

LIPIcs.ISAAC.2024.22.pdf
  • Filesize: 0.85 MB
  • 15 pages

Document Identifiers

Author Details

Emily Clark
  • University of California, Riverside, CA, USA
Chloe Georgiou
  • University of California, Riverside, CA, USA
Katelyn Poon
  • University of California, Riverside, CA, USA
Marek Chrobak
  • University of California, Riverside, CA, USA

Cite As Get BibTex

Emily Clark, Chloe Georgiou, Katelyn Poon, and Marek Chrobak. On HTLC-Based Protocols for Multi-Party Cross-Chain Swaps. In 35th International Symposium on Algorithms and Computation (ISAAC 2024). Leibniz International Proceedings in Informatics (LIPIcs), Volume 322, pp. 22:1-22:15, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2024) https://doi.org/10.4230/LIPIcs.ISAAC.2024.22

Abstract

In his 2018 paper, Herlihy introduced an atomic protocol for multi-party asset swaps across different blockchains. Practical implementation of this protocol is hampered by its intricacy and computational complexity, as it relies on elaborate smart contracts for asset transfers, and specifying the protocol’s steps on a given digraph requires solving an NP-hard problem of computing longest paths. Herlihy left open the question whether there is a simple and efficient protocol for cross-chain asset swaps in arbitrary digraphs. Addressing this, we study HTLC-based protocols, in which all asset transfers are implemented with standard hashed time-lock smart contracts (HTLCs). Our main contribution is a full characterization of swap digraphs that have such protocols, in terms of so-called reuniclus graphs. We give an atomic HTLC-based protocol for reuniclus graphs. Our protocol is simple and efficient. We then prove that non-reuniclus graphs do not have atomic HTLC-based swap protocols.

Subject Classification

ACM Subject Classification
  • Theory of computation → Distributed algorithms
Keywords
  • distributed computing
  • blockchain
  • asset swaps

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. N. Asokan, Matthias Schunter, and Michael Waidner. Optimistic protocols for fair exchange. In Proceedings of the 4th ACM Conference on Computer and Communications Security, CCS '97, pages 7-17, New York, NY, USA, 1997. ACM. URL: https://doi.org/10.1145/266420.266426.
  2. N. Asokan, Victor Shoup, and Michael Waidner. Optimistic fair exchange of digital signatures. IEEE Journal on Selected Areas in Communications, 18:593-610, 1997. Google Scholar
  3. M. Ben-Or, O. Goldreich, S. Micali, and R. L. Rivest. A fair protocol for signing contracts. IEEE Trans. Inf. Theor., 36(1):40-46, September 2006. Google Scholar
  4. Eric Chan, Marek Chrobak, and Mohsen Lesani. Cross-chain swaps with preferences. In 36th IEEE Computer Security Foundations Symposium, CSF 2023, Dubrovnik, Croatia, July 10-14, 2023, pages 261-275. IEEE, 2023. URL: https://doi.org/10.1109/CSF57540.2023.00031.
  5. Emily Clark, Chloe Georgiou, Katelyn Poon, and Marek Chrobak. On htlc-based protocols for multi-party cross-chain swaps. CoRR, abs/2403.03906, 2024. https://arxiv.org/abs/2403.03906, URL: https://doi.org/10.48550/arXiv.2403.03906.
  6. Apoorvaa Deshpande and Maurice Herlihy. Privacy-preserving cross-chain atomic swaps. In International Conference on Financial Cryptography and Data Security, pages 540-549. Springer, 2020. URL: https://doi.org/10.1007/978-3-030-54455-3_38.
  7. Matt Franklin and Gene Tsudik. Secure group barter: Multi-party fair exchange with semi-trusted neutral parties. In Rafael Hirchfeld, editor, Financial Cryptography, pages 90-102, Berlin, Heidelberg, 1998. Springer Berlin Heidelberg. Google Scholar
  8. Ethan Heilman, Sebastien Lipmann, and Sharon Goldberg. The Arwen trading protocols. In International Conference on Financial Cryptography and Data Security, pages 156-173. Springer, 2020. URL: https://doi.org/10.1007/978-3-030-51280-4_10.
  9. Maurice Herlihy. Atomic cross-chain swaps. In Proceedings of the 2018 ACM Symposium on Principles of Distributed Computing, PODC '18, pages 245-254, New York, NY, USA, 2018. ACM. URL: https://dl.acm.org/citation.cfm?id=3212736.
  10. Maurice Herlihy, Barbara Liskov, and Liuba Shrira. Cross-chain deals and adversarial commerce. arXiv preprint arXiv:1905.09743, 2019. URL: https://arxiv.org/abs/1905.09743.
  11. Soichiro Imoto, Yuichi Sudo, Hirotsugu Kakugawa, and Toshimitsu Masuzawa. Atomic cross-chain swaps with improved space and local time complexity, 2019. URL: https://arxiv.org/abs/1905.09985.
  12. Daniel Lokshtanov, M. S. Ramanujan, and Saket Saurabh. When recursion is better than iteration: A linear-time algorithm for acyclicity with few error vertices. In Proceedings of the 2018 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1916-1933, 2018. URL: https://doi.org/10.1137/1.9781611975031.125.
  13. Giulio Malavolta, Pedro Moreno-Sanchez, Clara Schneidewind, Aniket Kate, and Matteo Maffei. Anonymous multi-hop locks for blockchain scalability and interoperability. In 26th Annual Network and Distributed System Security Symposium, NDSS 2019, San Diego, California, USA, February 24-27, 2019. The Internet Society, 2019. URL: https://www.ndss-symposium.org/ndss-paper/anonymous-multi-hop-locks-for-blockchain-scalability-and-interoperability/.
  14. Subhra Mazumdar. Towards faster settlement in htlc-based cross-chain atomic swaps, 2022. https://arxiv.org/abs/2211.15804, URL: https://doi.org/10.48550/arXiv.2211.15804.
  15. Silvio Micali. Simple and fast optimistic protocols for btcwiki electronic exchange. In Proceedings of the Twenty-second Annual Symposium on Principles of Distributed Computing, PODC '03, pages 12-19, New York, NY, USA, 2003. ACM. Google Scholar
  16. Wallstreetmojo Team. Hashed timelock contract. https://www.wallstreetmojo.com/hashed-timelock-contract/, 2024.
  17. Sri AravindaKrishnan Thyagarajan, Giulio Malavolta, and Pedro Moreno-Sánchez. Universal atomic swaps: Secure exchange of coins across all blockchains. Cryptology ePrint Archive, 2021. Google Scholar
  18. Tier Nolan. Alt chains and atomic transfers. https://bitcointalk.org/index.php?topic=193281.msg2224949#msg2224949, 2013. [Online; accessed 23-January-2021].
  19. Aisshwarya Tiwari. An introductory guide to hashed timelock contracts. https://crypto.news/learn/an-introductory-guide-to-hashed-timelock-contracts/, 2022.
  20. Yingjie Xue and Maurice Herlihy. Hedging against sore loser attacks in cross-chain transactions. In Proceedings of the 2021 ACM Symposium on Principles of Distributed Computing, PODC'21, pages 155-164, New York, NY, USA, 2021. Association for Computing Machinery. URL: https://doi.org/10.1145/3465084.3467904.
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail