Skip to main content

Failure is (literally) an Option: Atomic Commitment vs Optionality in Decentralized Finance

  • Conference paper
  • First Online:
Stabilization, Safety, and Security of Distributed Systems (SSS 2021)

Abstract

Many aspects of blockchain-based decentralized finance can be understood as an extension of classical distributed computing. In this paper, we trace the evolution of two interrelated notions: failure and fault-tolerance. In classical distributed computing, a failure to complete a multi-party protocol is typically attributed to hardware malfunctions. A fault-tolerant protocol is one that responds to such failures by rolling the system back to an earlier consistent state. In the presence of Byzantine failures, a failure may be the result of an attack, and a fault-tolerant protocol is one that ensures that attackers will be punished and victims compensated. In modern decentralized finance however, failure to complete a protocol can be considered a legitimate option, not a transgression. A fault-tolerant protocol is one that ensures that the party offering the option cannot renege, and the party purchasing the option provides fair compensation (in the form of a fee) to the offering party. We sketch the evolution of such protocols, starting with two-phase commit, and finishing with timed hashlocked smart contracts.

Supported by NSF grant 1917990.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Aiyer, A.S., Alvisi, L., Clement, A., Dahlin, M., Martin, J.P., Porth, C.: BAR fault tolerance for cooperative services. In: Proceedings of the Twentieth ACM Symposium on Operating Systems Principles. SOSP 2005, pp. 45–58. ACM, New York (2005). https://doi.org/10.1145/1095810.1095816, http://doi.acm.org/10.1145/1095810.1095816

  2. Bernstein, P.A., Hadzilacos, V., Goodman, N.: Concurrency Control and Recovery in Database Systems. Addison-Wesley Longman Publishing Co., Inc., Boston (1986)

    Google Scholar 

  3. bitcoinwiki: Atomic cross-chain trading. https://en.bitcoin.it/wiki/Atomic_cross-chain_trading

  4. Bowe, S., Hopwood, D.: Hashed time-locked contract transactions. https://github.com/bitcoin/bips/blob/master/bip-0199.mediawiki

  5. Clement, A., Li, H., Napper, J., Martin, J.P.M., Alvisi, L., Dahlin, M.: BAR primer. In: Proceedings of the international conference on dependable systems and networks (DSN), DCC symposium (2008), place: Anchorage, AK

    Google Scholar 

  6. DeCred: Decred cross-chain atomic swapping. https://github.com/decred/atomicswap

  7. Eizinger, T., Fournier, L., Hoenisch, P.: The state of atomic swaps (2018). http://diyhpl.us/wiki/transcripts/scalingbitcoin/tokyo-2018/atomic-swaps/

  8. Engel, D., Herlihy, M., Xue, Y.: Transferrable cross-chain options (2021)

    Google Scholar 

  9. Han, R., Lin, H., Yu, J.: On the optionality and fairness of Atomic Swaps. In: Proceedings of the 1st ACM Conference on Advances in Financial Technologies. pp. 62–75. ACM, Zurich, October 2019. https://doi.org/10.1145/3318041.3355460, https://dl.acm.org/doi/10.1145/3318041.3355460

  10. Heilman, E., Lipmann, S., Goldberg, S.: The Arwen trading protocols, January 2019. https://www.arwen.io/whitepaper.pdf

  11. Herlihy, M.: Atomic cross-chain swaps. In: Proceedings of the 2018 ACM Symposium on Principles of Distributed Computing. PODC 2018, pp. 245–254. ACM, New York (2018). https://doi.org/10.1145/3212734.3212736, http://doi.acm.org/10.1145/3212734.3212736, number of pages: 10 Place: Egham, United Kingdom tex.acmid: 3212736

  12. Herlihy, M.: Blockchains from a distributed computing perspective. Commun. ACM 62(2), 78–85 (2019). https://doi.org/10.1145/3209623

    Article  Google Scholar 

  13. Herlihy, M.: Cross-chain deals and adversarial commerce. CoRR abs/1905.09743 (2019). http://arxiv.org/abs/1905.09743

  14. Herlihy, M., Liskov, B., Shrira, L.: Cross-chain deals and adversarial commerce. Proc. VLDB Endow. 13(2), 100–113 (2019). https://doi.org/10.14778/3364324.3364326, http://arxiv.org/abs/1905.09743

  15. Higham, D.J.: An Introduction to Financial Option Valuation: Mathematics, Stochastics and Computation, 4th edn. Cambridge University Press, Cambridge (2009)

    MATH  Google Scholar 

  16. Liu, J.A.: Atomic swaptions: cryptocurrency derivatives. arXiv:1807.08644 [cs, q-fin], March 2020

  17. Nolan, T.: Atomic swaps using cut and choose, February 2016. https://bitcointalk.org/index.php?topic=1364951

  18. Organization, T.K.: The BarterDEX whitepaper: a decentralized, open-source cryptocurrency exchange, powered by atomic-swap technology. https://supernet.org/en/technology/whitepapers/BarterDEX-Whitepaper-v0.4.pdf

  19. Platform, K.: Advanced blockchain technology, focused on freedom, July 2019. https://docs.komodoplatform.com/basic-docs/start-here/core-technology-discussions/introduction.html#note-on-changes-since-whitepaper-creation-cr-2019

  20. Popper, N.: A venture fund with plenty of virtual capital, but no capitalist. New York Times (man 2016). https://www.nytimes.com/2016/05/22/business/dealbook/crypto-ether-bitcoin-currency.html

  21. Robinson, D.: Htlcs considered harmful (2019). http://diyhpl.us/wiki/transcripts/stanford-blockchain-conference/2019/htlcs-considered-harmful/

  22. Tefagh, M., Bagheri, F., Khajehpour, A., Abdi, M.: Capital-free futures arbitrage, October 2020. https://doi.org/10.13140/RG.2.2.31609.90729/1, https://www.researchgate.net/profile/Mojtaba-Tefagh-2/publication/344886866_Capital-free_Futures_Arbitrage/links/5fdc88e3a6fdccdcb8d89ee1/Capital-free-Futures-Arbitrage.pdf

  23. Vigna, P.: Chiefless company rakes in more than $100 million. Wall Street Journal, May 2016. https://www.wsj.com/articles/chiefless-company-rakes-in-more-than-100-million-1463399393

  24. Xu, J., Ackerer, D., Dubovitskaya, A.: A game-theoretic analysis of cross-chain atomic swaps with HTLCs. arXiv:2011.11325 [cs], April 2021. http://arxiv.org/abs/2011.11325

  25. Xue, Y., Herlihy, M.: Hedging against sore loser attacks in cross-chain transactions. In: ACM Symposium on Principles of Distributed Computing (2021)

    Google Scholar 

  26. Young, J.: Defi explosion: Uniswap surpasses coinbase pro in daily volume (2020)

    Google Scholar 

  27. Zakhary, V., Agrawal, D., El Abbadi, A.: Atomic commitment across blockchains. CoRR abs/1905.02847 (2019). http://arxiv.org/abs/1905.02847 tex.bibsource: dblp computer science bibliography, https://dblp.org tex.biburl: https://dblp.org/rec/bib/journals/corr/abs-1905-02847 tex.timestamp: Mon, 27 May 2019 13:15:00 +0200

  28. Zyskind, G., Kisagun, C., FromKnecht, C.: Enigma Catalyst: a machine-based investing platform and infrastructure for crypto-assets. https://www.enigma.co/enigma_catalyst.pdf

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Maurice Herlihy .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Engel, D., Herlihy, M., Xue, Y. (2021). Failure is (literally) an Option: Atomic Commitment vs Optionality in Decentralized Finance. In: Johnen, C., Schiller, E.M., Schmid, S. (eds) Stabilization, Safety, and Security of Distributed Systems. SSS 2021. Lecture Notes in Computer Science(), vol 13046. Springer, Cham. https://doi.org/10.1007/978-3-030-91081-5_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-91081-5_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-91080-8

  • Online ISBN: 978-3-030-91081-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics