An Analysis of Atomic Swaps on and between Ethereum Blockchains Research Project I

Similar documents
GENESIS VISION NETWORK

The power of Blockchain: Smart Contracts. Foteini Baldimtsi

Who wants to be a millionaire? A class in creating your own cryptocurrency

Vladimir Groshev. COO, Project Coordinator.

Ergo platform: from prototypes to a survivable cryptocurrency

Ergo platform overview

Ergo platform. Dmitry Meshkov

Gnosis Safe Documentation. Gnosis

Lecture 10. A2 - will post tonight - due in two weeks

LECTURE 2 BLOCKCHAIN TECHNOLOGY EVOLUTION

MYETHERWALLET GUIDE 1

Theta Token - SLIVER.tv Deposit Guide

Unblockable Chains. Is Blockchain the ultimate malicious infrastructure? Omer Zohar

NEW TOKEN SWAP INSTRUCTIONS For action after July 23, 2018.

Active Planning Committee John Lindsay, Patent Attorney Tony Schuman, Investment Advisor Todd Russell, Gov t Contract Opportunities

Page Total

TABLE OF CONTENTS 1.0 TOKEN SALE SUMMARY INTRODUCTION HOW TO BUY LION HOW TO BUY LION WITH METAMASK

What is Proof of Work?

Technical White Paper of. MOAC Mother of All Chains. June 8 th, 2017

Smart Transactions: An In-To-Out Manageable Transaction System

BLOCKCHAIN CADEC Pär Wenåker & Peter Larsson

DoS on a Bitcoin Lightning Network channel.

BaFin-Tech 2018 BlockChain & Security (from #developerview)

SECURITY AUDIT REPORT

Secure Token Development and Deployment. Dmitry Khovratovich and Mikhail Vladimirov, University of Luxembourg and ABDK Consulting

Key concepts of blockchain

Final Presentation Master s Thesis: Identification of Programming Patterns in Solidity

Using Chains for what They re Good For

Security, Privacy and Interoperability in Payment- Channel Networks

FLIP Token (FLP) How to Participate in the FLIP Token (FLP) Sale Event. 1 Disclaimer 2. 2 What You Will Need 2

Ethereum. Campbell R. Harvey* Duke University and NBER. Ashwin Ramachandran Duke University. Brent Xu ConsenSys. Innovation and Cryptoventures

Guide on NAS Token Swap via NAS nano Wallet

a new cryptocurrency STK GLOBAL PAYMENTS USER GUIDE USER GUIDE: PARTICIPATING IN IN STK STK TOKEN TOKEN SALE USING SALE MYETHERWALLET

SOME OF THE PROBLEMS IN BLOCKCHAIN TODAY

VeChainThor. Token Swap. Mobile Wallet. Manual

ENEE 457: E-Cash and Bitcoin

ICO Review: Raiden Network (RDN)

For further information about the GRID token sale, please visit gridplus.io/token-sale.

Ethereum. Smart Contracts Programming Model

Blockchain for Enterprise: A Security & Privacy Perspective through Hyperledger/fabric

Blockchain! What consultants should know about it. Daniel

Candidates Day Modeling the Energy Consumption of. Ryan Cole Liang Cheng. CSE Department Lehigh University

As a 3rd generation currency, not only are transactions secured, private and fast, you actually get paid for holding DigitalPrice coins.

kasko2go Token Contract Audit

Callisto Network Whitepaper

Blockchain-enabled peer-to-peer marketplaces

CONSENSUS PROTOCOLS & BLOCKCHAINS. Techruption Lecture March 16 th, 2017 Maarten Everts (TNO & University of Twente)

A SYSTEM FOR ENABLING SHORT-TERM FINANCING

Privacy based Public Key Infrastructure (PKI) using Smart Contract in Blockchain Technology

Bitcoin, a decentralized and trustless protocol

Hyperledger fabric: towards scalable blockchain for business

TOKEN SWAP FAQ. For action before July 23, 2018.

Hawk: The Blockchain Model of Cryptography and Privacy-Preserving Smart Contracts. Yashar Dehkan Asl

Short review of the Coinmama.com. Registration on the Coinmama

DTX Token. Starter guide

The Technology behind Smart Contracts

Building Applications on the Ethereum Blockchain

Ethereum in Enterprise Context

Enjin Coin Yellow Paper

I. How to Purchase Cryptfunder CFND Tokens

Cryptography and Cryptocurrencies. Intro to Cryptography and Cryptocurrencies

Computer Security. 14. Blockchain & Bitcoin. Paul Krzyzanowski. Rutgers University. Spring 2019

Visualization & Convenience

SmartPool: practical decentralized pool mining. Loi Luu, Yaron Velner, Jason Teutsch, and Prateek Saxena August 18, 2017

Lightpaper TENZORUM. The unstoppable machine for self-sovereign key management and access to the decentralized world.

Erays: Reverse Engineering Ethereum s Opaque Smart Contracts

ETHEREUM META. Whitepaper 2018/2019. A decentralized token with privacy features. Ethereum Meta team

Essentia blockchain. Nomenclature 2. Preamble 2. The Design of Essentia 3. The Essentia Mathematical Model 6

Mobilink-Network Partial List of Partners

Blockchain & Distributed Internet Infrastructure

Distributed Ledger Technology & Fintech Applications. Hart Montgomery, NFIC 2017

HowtobuyHUMToken. Table of Contents. Beforeproceedingwiththepurchase Pre-saleguideusingMyEtherWallet Pre-saleguideusingMetamask

White Paper #MetaHash, 2018 Version: 4.1 Last edit: April 4th, 2018

How to buy LIVE Token with Ethereum and Bitcoin step by step

OW TO PARTICIPAT HOW TO PARTICIPATE

hard to perform, easy to verify

Guide to a Successful Wanchain Token Contribution

White Paper. MetaHash AG, Gartenstrasse 6, 6300 Zug Switzerland

Token Sale. Participation guide

The security and insecurity of blockchains and smart contracts

Introduction to Blockchain

Light paper Version 1.1.3

Client-Server Architecture PlusUltra beyond the Blockchain

SpaceMint Overcoming Bitcoin s waste of energy

FXY TOKEN SMART CONTRACT AUDIT RESULTS FOR FIXY NETWORK LTD

Blockchain, Cryptocurrency, Smart Contracts and Initial Coin Offerings: A Technical Perspective

Voting in the Colony Governance Protocol. Elena Dimitrova & Dr. Aron Fischer

Cryptocurrencies for Investigators

Blockchains & Cryptocurrencies

Lecture 44 Blockchain Security I (Overview)

Analyzing the Effects of Network Latency on Blockchain Performance and Security Using the Whiteblock Testing Platform

Whitepaper Rcoin Global

Key Security Issues for implementation of Digital Currency, including ITU-T SG17 activities

Technical Analysis of Established Blockchain Systems

Hong Kong JavaScript and Node.js. Welcome

Ethereum Consortium Blockchain in Azure Marketplace Christine Avanessians Senior Program Manager

Introduction to Cryptoeconomics

Token White Paper. Global marketplace based on Block chain for small-scale business I ver P a g e

Adapting Blockchain Technology for Scientific Computing. Wei Li

INTRODUCTION WHY DAPS?

Transcription:

An Analysis of Atomic Swaps on and between Ethereum Blockchains Research Project I Master of System and Network Engineering Informatics Institute, University of Amsterdam Peter Bennink Lennart van Gijtenbeek Supervisors: Oskar van Deventer Maarten Everts February 5, 2018

Centralized cryptocurrency exchanges - Transactions via the exchange - Exchanges hold funds - SPOF (wallet database) - Hacks and disappearances - Untrustworthy trusted third party 2

Atomic swaps - More decentralized process - Less dependence on (centralized) third parties - Less chance of loss of funds A transaction between two parties that does not depend on a third party, for instance a centralized exchange, and either happens in full, or not at all. 3

Are there reliable methods for making atomic swaps on and between blockchains? 4

Ethereum - TNO Techruption blockchain - Ethereum Classic (ETC) & Quorum - Mining process similar to Bitcoin (PoW) - Smart contracts 5

Smart contracts - Programs stored on the blockchain - Solidity - Static and open-source code - Gas costs - Executed by miners to verify - Tokens are implemented using smart contracts 6

ERC-20 Token Standard - Homogeneity - Smoother integration with crypto software. - Requires the implementation of the ERC-20 interface - Return total supply - Keep track of wallet balances - Transfer tokens - Allowances 7

Types of atomic swaps 1. Single-chain token swaps 2. Single-chain coin/token swaps 3. Cross-chain coin swaps 4. Cross-chain token swaps 5. Cross-chain coin/token swaps 8

1. Single-chain token swap 1.5 EOS Client A B Client 1 OMG 9

2. Single-chain token/coin swap 100 EOS Client A B Client 1 ETH 10

3. Cross-chain coin swap A 1 ETH B Client Client A 40 ETC B 11

4. Cross-chain token swap A 1 VeChain B Client Client A 30 InPay B 12

5. Cross-chain token/coin swap A 2.5 EOS B Client Client A 1 ETC B 13

Types of atomic swaps 1. Single-chain token swaps 2. Single-chain coin/token swaps 3. Cross-chain coin swaps 4. Cross-chain token swaps 5. Cross-chain coin/token swaps 6. Single-chain coin swaps 14

Design & implementation - Single usage swap contracts - Transaction via the contract - Rinkeby & Ropsten test networks - Hashed TimeLocked Contract (HTLC) - Compatible with all ERC-20 tokens 15

Cross-chain coin swap 16

Why is this atomic? - If client A does not claim their funds, client B cannot either - If client A claims, they reveal the secret to client B, who can then can also claim their funds function claim(string _secret) public returns (bool) { if (hashed_secret == sha256(_secret) && now < timeout){ selfdestruct(clientb); } else { return false; } } 17

Single-chain token swap 18

Why is this atomic? - When claim() is called the contract is in full control of the funds function claim() onlyparticipant public returns (bool) { uint token1_balance = token1_instance.balanceof(this); uint token2_balance = token2_instance.balanceof(this); if (token2_balance >= amountof_token2 && token1_balance >= amountof_token1 && now < timeout) { token1_instance.transfer(clientb, token1_balance); token2_instance.transfer(clienta, token2_balance); selfdestruct(clienta); } else { return false; } } 19

Reusable contracts - Indefinitely and concurrently - Scales better - No deployment costs 20

Reusable single-chain token swap 21

Conclusion Future research - Reusability - Other blockchains - Reliable swaps are possible - Off-chain - Decentralized exchanges (use cases) - Investigate attack vectors Project git repository: github.com/clvang000/sne_tno_rp1 22

Questions... Project git repository: github.com/clvang000/sne_tno_rp1 23