Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Atomic cross-chain swaps with improved space, time and local time complexities

Published: 01 June 2023 Publication History

Abstract

An effective atomic cross-chain swap protocol is introduced by Herlihy [Herlihy, 2018] as a distributed coordination protocol in order to exchange assets across multiple blockchains among multiple untrusted parties. The atomic cross-chain swap protocol guarantees; (1) if all parties conform to the protocol, then all assets are exchanged among the parties, (2) even if some parties or coalitions of parties deviate from the protocol, no party conforming to the protocol suffers a loss, and (3) no coalition has an incentive to deviate from the protocol. Herlihy [Herlihy, 2018] invented this protocol by using hashed timelock contracts.
A cross-chain swap is modeled as a directed graph D = ( V, A ). Vertex set V denotes a set of parties and arc set A denotes a set of proposed asset transfers. Let Δ be time enough for a party to publish a contract on any of the blockchains, or to change the state of a contract and for the other party to detect the change. The space complexity of the protocol is O ( | A | 2 ). The local time complexity of the protocol is O ( | V | ⋅ | L | ), where L is a feedback vertex set computed by the protocol. We propose a new atomic cross-chain swap protocol which uses only signature information and improves the space complexity to O ( | A | ⋅ | V | ) and the local time complexity to O ( | V | ). Moreover, if all parties conform to our protocol, our proposed protocol improves the time complexity from O ( | V | Δ ) to O ( Δ ).

References

[1]
Nakamoto, S.; Bitcoin, A. (2008): A peer-to-peer electronic cash system. Bitcoin https://bitcoin.org/bitcoin.pdf.
[2]
S. Underwood, Blockchain beyond bitcoin, 2016.
[3]
D.J. Abraham, A. Blum, T. Sandholm, Clearing algorithms for barter exchange markets: enabling nationwide kidney exchanges, in: Proceedings of the 8th ACM Conference on Electronic Commerce, 2007, pp. 295–304.
[4]
J.P. Dickerson, D.F. Manlove, B. Plaut, T. Sandholm, J. Trimble, Position-indexed formulations for kidney exchange, in: Proceedings of the 2016 ACM Conference on Economics and Computation, 2016, pp. 25–42.
[5]
Z. Jia, P. Tang, R. Wang, H. Zhang, Efficient near-optimal algorithms for barter exchange, in: Proceedings of the 16th Conference on Autonomous Agents and MultiAgent Systems, 2017, pp. 362–370.
[6]
L. Shapley, H. Scarf, On cores and indivisibility, J. Math. Econ. 1 (1) (1974) 23–37.
[7]
R.M. Kaplan, An improved algorithm for multi-way trading for exchange and barter, Electron. Commer. Res. Appl. 10 (1) (2011) 67–74.
[8]
M. Herlihy, B. Liskov, L. Shrira, Cross-chain deals and adversarial commerce, Proc. VLDB Endow. 13 (2) (2019) 100–113.
[9]
M. Borkowski, M. Sigwart, P. Frauenthaler, T. Hukkinen, S. Schulte, Dextt: deterministic cross-blockchain token transfers, IEEE Access 7 (2019) 111030–111042.
[10]
Anta, A.F.; Georgiou, C.; Nicolaou, N. (2018): Atomic appends: selling cars and coordinating armies with multiple distributed ledgers. arXiv preprint arXiv:1812.08446.
[11]
Nick, S. : The idea of smart contracts. online https://nakamotoinstitute.org/the-idea-of-smart-contracts/.
[12]
L. Luu, D.-H. Chu, H. Olickel, P. Saxena, A. Hobor, Making smart contracts smarter, in: Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, 2016, pp. 254–269.
[13]
BitcoinWiki : Hash time locked contracts. online https://en.bitcoin.it/wiki/Hash_Time_Locked_Contracts.
[14]
M. Herlihy, Atomic cross-chain swaps, in: Proceedings of the 2018 ACM Symposium on Principles of Distributed Computing, 2018, pp. 245–254.
[15]
Bitcoin.com : The average time for a transaction. online https://www.blockchain.com/charts/avg-confirmation-time.

Index Terms

  1. Atomic cross-chain swaps with improved space, time and local time complexities
        Index terms have been assigned to the content through auto-classification.

        Recommendations

        Comments

        Information & Contributors

        Information

        Published In

        cover image Information and Computation
        Information and Computation  Volume 292, Issue C
        Jun 2023
        373 pages

        Publisher

        Academic Press, Inc.

        United States

        Publication History

        Published: 01 June 2023

        Author Tags

        1. Blockchain
        2. Atomic cross-chain swap
        3. Smart contract
        4. Hashed timelock contract

        Qualifiers

        • Research-article

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • 0
          Total Citations
        • 0
          Total Downloads
        • Downloads (Last 12 months)0
        • Downloads (Last 6 weeks)0
        Reflects downloads up to 06 Oct 2024

        Other Metrics

        Citations

        View Options

        View options

        Get Access

        Login options

        Media

        Figures

        Other

        Tables

        Share

        Share

        Share this Publication link

        Share on social media