Skip to main content
QUICK REVIEW

[Paper Review] JugglingSwap: Scriptless Atomic Cross-Chain Swaps

Omer Shlomovits, Oded Leiba|arXiv (Cornell University)|Jul 28, 2020
Cryptography and Data SecurityComputer Science35 references9 citations
TL;DR

JugglingSwap introduces a scriptless atomic cross-chain swap protocol that enables trustless, self-custody exchanges between blockchains with differing signature schemes and elliptic curve parameters. By using a novel public-key verifiable encryption scheme called 'Juggling' to gradually release secret shares, it achieves interoperability beyond existing scriptless protocols, which require shared curve parameters, while maintaining security and fairness through threshold signatures and verifiable secret sharing.

ABSTRACT

The blockchain space is changing constantly. New chains are being implemented frequently with different use cases in mind. As more and more types of crypto assets are getting real world value there is an increasing need for blockchain interoperability. Exchange services today are still dominated by central parties which require custody of funds. This trust imposes costs and security risks as frequent breaches testify. Atomic cross-chain swaps (ACCS) allow mutual distrusting parties to securely exchange crypto assets in a peer-to-peer manner while preserving self-custody. Fundamental ACCS protocols leveraged the scripting capabilities of blockchains to conditionalize the transfer of funds between trading parties. Recent work showed that such protocols can be realized in a scriptless setting. This has many benefits to blockchains throughput, efficiency of swap protocols and also to fungibility and privacy. The proposed protocols are limited to assets transferable by either Schnorr signatures or ECDSA that are assuming the same elliptic curve parameters. In this work we present JugglingSwap, a scriptless atomic cross-chain swap protocol with a higher degree of interoperability. We weaken the assumptions about blockchains that can be included in the ACCS protocol, and only require that (1) a threshold variant exists to the underlying digital signature scheme and (2) it is based on the elliptic curve discrete logarithm problem (ECDLP). The fair exchange is achieved by a gradual release of secrets. To achieve this we use a new building block we call Juggling: a public key verifiable encryption scheme to transfer segments of secret shares between parties, which can also be of separate interest. Juggling is then tailored to a specific private key management system design with threshold signatures security.

Motivation & Objective

  • To address the limited interoperability of existing scriptless atomic cross-chain swap protocols, which require shared elliptic curve parameters and signature schemes (e.g., Schnorr or ECDSA).
  • To enable atomic swaps between blockchains that use different digital signature schemes or elliptic curves, thereby increasing the scope of cross-chain interoperability.
  • To design a fair exchange mechanism that ensures mutual trustworthiness without relying on trusted third parties or on-chain scripting.
  • To develop a new cryptographic primitive—Juggling—enabling secure, verifiable, and gradual transfer of secret shares between parties.

Proposed method

  • The protocol uses a novel public-key verifiable encryption scheme called 'Juggling' to securely transfer segments of secret shares between parties in a gradual, verifiable manner.
  • Secret shares are generated using a threshold key generation protocol (e.g., {3,3}-Thresh-Key-Gen) over elliptic curves where the discrete logarithm problem is hard.
  • Each party contributes a share of the private key to a shared address, and the full key is reconstructed only if all parties cooperate.
  • The protocol ensures fairness by requiring both parties to reveal their shares incrementally, with the ability to detect and prove malicious behavior via publicly verifiable encryption.
  • The system supports interoperability across blockchains using ECDSA, EdDSA, or other ECDLP-based schemes, as long as a threshold signature scheme exists.
  • The implementation uses Rust for the cryptographic layer and JavaScript for communication, abstracting curve and signature schemes for extensibility.

Experimental results

Research questions

  • RQ1Can atomic cross-chain swaps be achieved without requiring shared elliptic curve parameters or signature schemes across blockchains?
  • RQ2How can a fair exchange be achieved in a scriptless setting when blockchains differ in underlying signature mechanisms?
  • RQ3Can a verifiable, gradual secret-sharing mechanism be constructed to replace on-chain scripting and enable interoperability across diverse blockchains?
  • RQ4What cryptographic primitives are necessary to ensure both security and verifiability in a decentralized, trustless swap protocol across heterogeneous chains?
  • RQ5How can threshold signatures and verifiable encryption be combined to enable secure, self-custody swaps without trusted third parties?

Key findings

  • JugglingSwap enables atomic cross-chain swaps between blockchains using different elliptic curves and signature schemes, such as Bitcoin (ECDSA/Secp256k1) and Ethereum (ECDSA/Secp256k1), or EdDSA-based chains like Algorand and Tezos.
  • The protocol achieves interoperability without requiring shared curve parameters or signature schemes, overcoming a key limitation of prior scriptless atomic swap protocols.
  • The use of the Juggling primitive allows for a gradual, verifiable release of secret shares, ensuring fairness and enabling detection of malicious behavior.
  • The protocol requires only two standard transactions per blockchain, minimizing on-chain footprint and improving efficiency compared to script-based HTLCs.
  • Security is maintained even if one party or the provider is malicious, as long as the threshold key generation and verification mechanisms are correctly enforced.
  • The implementation demonstrates feasibility with Secp256k1 and curve25519, supporting both ECDSA and Schnorr signatures, and is extensible to other curves and signature schemes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.