runrafter
runrafter

2 min read - Posted 17 Feb 19

ETH/ZIL/BTC Atomic Swaps

Project Name

ETH/ZIL/BTC Atomic Swaps

Project Tagline/Description (140 Characters Max. Will be used on table card for judging)

Peer-to-peer exchange of ETH, ZIL, and BTC on their native chains, utilizing hashed timelock contracts. No wrapping required!

Team Members. First and Last Names

  • Matthew Black
  • Tony Cai

Status.im ID for Each Team Member (we will use this to contact you and your team)

  • Tricky Familiar Widowspider 0x04eac6ad3adfde5f86308bd3269e989ddbe14536f2e106d0dde2fa6cd7a51c64e0c7cad45e8b60fec70aa41a52dfacfd31618dd9ec49dada95eb4811839e151042
  • Deepskyblue Crazy Harrierhawk 0x0474c02b0eb1bfd388c62b4a63c652b2b52202fb290a7f924d9f45b1702fff8a79e2f238f885e2e1fd56ccb491387af27cf5c4e63519be0f3c63b5114ab575bfb7

Detailed Project Description (no more than 3-4 sentences)

The ETH/ZIL/BTC Atomic Swaps project enables trustless swapping of ZIL, ETH, and BTC (using BIP 199 for BTC, ERC 1630 for ETH, and the first ZIL Hashed Timelock Contract (HTLC) written in Scilla (https://github.com/mattBlackDesign/chainabstractionlayer/blob/master/src/providers/zilliqa/ZilliqaSwapProvider.js#L5)). We did this by forking the Chain Abstraction Layer, and adding Zilliqa as an asset, enabling the trustless swapping of any of the three pairs (ETH-ZIL, BTC-ZIL, BTC-ETH). We use the typical HTLC method of locking funds using a secret hash, where the counterparty is able to claim once they receive the secret. We ran into a limitation of not being able to use timestamps for the timelocks in Scilla, and resorted to using blocktimes instead, but once https://github.com/Zilliqa/scilla/issues/311 is implemented, this can be done with timestamps.

Describe your tech stack (e.g., protocols, languages, API’s, etc.)

Track for which you’re submitting (Open or Impact)

Open

All Bounties Completed/Incorporated

  • Zilliqa Bounty 1: Cross-chain atomic swap between Zilliqa and Ethereum blockchains
  • Zerion Bounty 1: The best financial product for DeFi

https://github.com/mattBlackDesign/chainabstractionlayer https://github.com/mattBlackDesign/chainabstractionlayer/tree/master/src/providers/zilliqa

Created with Sketch.Content is"CC-BY-SA 4.0" licensed
Article On-chain
Article Author
0 Comments
Related Articles
Cross-Chain Pacman

Cross-Chain Pacman Tagline: The world is going to be chain-agnostic! Here is the proof! Team Members Hammad Tariq, Gaurav Shukla Status.im ID hammadtariq Detailed Project Description Play cross-chain pacman in your browser. Its a proof-of-concept where one user can choose to play over Zilliqa blockchain and other one can play over Ropsten test network (Ethereum). The game seamlessly records who is winning and allows the swap of a digital sword to the winner. Along with Zilliqa and Ethereum, the

hammadtariq
Hammad Tariq

17 Feb 19

Safe CDP

Project Name Safe CDP Project Tagline/Description (140 Characters Max. Will be used on table card for judging) CDP safe from automatic liquidation Team Members. First and Last Names Derek Chiang Deepa Sathaye Brandon West Noah Amar Status.im ID for Each Team Member (we will use this to contact you and your team) derek Insecure Pointed Xraytetra Detailed Project Description (no more than 3-4 sentences) Today, CDP users typically over-collateralize their CDP by 300%-400% because they are scared th

derekchiang
Derek Chiang

17 Feb 19