Inspiration

What it does

Allows two actors on two Ethereum chains to perform trustless atomic swaps without counterparty risk of funds loss. The actors are indeed able to recover their funds until the swap takes place. The protocol doesn't cover the initial order matching and assumes that both parties provisionally agreed on amounts.

How I built it

The project is built on top of two protocols: ION for interoperabilty (https://github.com/clearmatics/ion) and ZETH for private transactions (https://github.com/clearmatics/zeth)

The Zeth contract has been modified in order to create temporary locked commitments that cannot be spent by the counterparty until the trade is settled.

We wrapped the two protocols in a Zion contract that handles the atomic swap flow and interfaces with the counterparties.

Challenges I ran into

Design the crosschain protocol in a single smart contract that is deployed on two chains, that has to sync the two states in order to have a linear crosschain execution flow.

Accomplishments that I'm proud of

What I learned

What's next for Zion: Privacy-Preserving Crosschain Atomic Swaps

  • implement the funds recovery with zkProofs
  • optimizations

Built With

Share this project:

Updates