DEx.top Technical White Paper (V1.0)

Similar documents
E X C H A N G E U N I O N

Local Trade. A decentralized peer to peer exchange with escrow support for Crypto Traders. White Paper

MAXIMUM E X C H A N G E W H I T E P A P E R

Table of contents. 2

White Paper-Diamante NET

L3. Blockchains and Cryptocurrencies

DECENTRALIZED ASSET TRADING PLATFORM WHITEPAPER VERSION 3.1 DATP.MARKET

Blockchain made Simple

What Is BlockChain? X

Blockchain Developer TERM 1: FUNDAMENTALS. Blockchain Fundamentals. Project 1: Create Your Identity on Bitcoin Core. Become a blockchain developer

White Paper. Bizanc Blockchain

Symmetry FUND. Whitepaper October 2017

TECHNICAL WHITEPAPER. Your Commercial Real Estate Business on the Blockchain. realestatedoc.io

White Paper Exchange. Reborn.

IEW. OINT OF NOTHER ROM BLOCKCHAIN 101 // EXECUTIVE DECK. Marcelo T. de Alvear 405 Oficina # 9 Ciudad de Buenos Aires Argentina

FLASH TOKEN WHITE PAPER

DEV X. Deviant Decentralized Exchange. A hybrid exchange leveraging Smartcoins on the Bitshares (BTS) blockchain.

The first blockchain-secured Forex marketplace.

IS BLOCKCHAIN THE FUTURE OF REAL ESTATE? DENITZA TYUFEKCHIEVA

Crypto & Forex. Three-Way concept for a profitable future! Whitepaper 1.0

An introduction. Dr Ken Boness

A.J. Bahou, LLM, MSECE Bahou Miller PLLC

HYDRO. A coordination layer for decentralized exchanges. White Paper. January 2018

The first blockchain-based digital commodities platform

A Price-Stable Cryptocurrency. Government Debt Securities.

Table of Contents. Introduction Easy Trading Platform. Our Other Products. Social Platform Roadmap. Easy Trading Token.

Your Own Crypto Bank

White Paper Version 0.2 January 29,2018 ABSTRACT

This document and information contained herein may not be sent and or addressed wholly or in

Harbor Token White Paper

Komodo Secured Bond KSB

Cryptocurrencies as Charitable Gifts: Should Your Charity Say Yes?

A block chain based decentralized exchange

Product Overview. Version October 2, 2017 thetoken.io Page 1 of 9

Introduction 3. Key issues of ITO/ICO 4. How Exenium solves the issues of the ITO/ICO 4. Problems faced by cryptocurrency exchanges 5

In the future, many kinds of cryptocurrencies will be born, and service competition will increase.

November 2018 Abstract

Universal Payment Channels

SECURITY TOKEN MCEX: A

Blend whitepaper V 1.0

The OneAlto Token (O-Token ) Standard. Version February 28, Abstract

Blockchain: from electronic cash to redefining trust

Contents. Abstract. Introduction. Restrictions of Centralised Exchanges. The TrustBar Solution. TrustBar value-add opportunities

Cisco Live /11/2016

Index. 1. About Us 2. Types Of Insurance. 3. Technical Aspects 4. Coin Distribution. 5. Conclusion

ABSTRACT. There is a limited number of tokens available, and it is advised that you take advantage of the ICO discounts.

Blockchain Investment Platform

Blockchain Technology and Automotive Industries. John Wagster Co-Chair, Blockchain and Cryptocurrency Practice

DECENTRILIZED CRYPTOCURRENCY EXCHANGE Fast, Reliable and Simple

chainfrog WHAT ARE SMART CONTRACTS?

Blockchain and the Maritime Industry

Surface Web/Deep Web/Dark Web

The Blockchain Trevor Hyde

U-BET DECENTRALIZED ONLINE SPORTS BETTING PLATFORM ON MASTERNODES AND SMARTCONTRACTS LIGHTPAPER

New Kids on the Blockchain: RIM Blockchain Applications Today & Tomorrow

Blockchain Payments for Everyone

PrivacyStake Whitepaper

Whitepaper. 1

F i nanci a l infr ast ruct u r a l P a yall pla t form

dydx: A Standard for Decentralized Derivatives

SECRET COIN WHITE PAPER

Whitepaper Carproject.io

SMART CONTRACTS in Insurance

NAIRA COIN. Fiat Currency on the Ethereum Blockchain

Business Primer Last updated: October 27th, 2017

GNOSIS DUTCH EXCHANGE. DX Gnosis Blog

A smart cryptocurrency trading assistant service

HOW TO PARTICIPATE IN THE MODL TOKEN SALE. Step-by-step guide

Transferring Data through an Ethereum Blockchain using Transactions

ZAKZAK Exchange Whitepaper V1.7

THE MOST INNOVATIVE AND LUCRATIVE WAY TO EARN BITCOIN.

LEVERAGE. Whitepaper v1.0.5 (April 2018)

Blockchain. Deepak Agarwal ICMA Conference Presenter

FIRST EVER COMMODITY - CRYPTO EXCHANGE WHITEPAPER

Aworker.io Terms of Token Sale

ABOUT PriorityEx PriorityEx

EVERYTHING YOU NEED TO KNOW ABOUT DIGITAL LEDGER TECHNOLOGY, THE BLOCKCHAIN AND CRYPTOCURRENCIESÓ (Part I June 2018)

What is KEWI? What is cryptocurrency? Why invest in cryptocurrency? KEWI fact file. Why choose KEWI? Who should invest. Portfolio management

Polaris (XPR) Dividend Paying Mining Farm on the Blockchain

IOV: a Blockchain Communication System

THE BLOCKCHAIN DISRUPTION. INSIGHT REPORT on Blockchain prepared by The Burnie Group

MEDIA ROYALTY ACQUISITION TOKEN

CORPORATE PRESENTATION

EtherDelta Public Exchange

FinTech Revolution What s ahead? Belvedere Capital Advisor

INTRODUCTION TO THE BLOCKCHAIN ERRIN ICT Working Group Meeting on Blockchain June 13, Javier Prieto IoT Digital Innovation Hub

THE HORECA COIN (HRC) The Global Trading Cryptocurrentcy. 1. Basic about HORECA Coin (HRC) GENERALITY. Introductions

Introduction. Meet ETHBITS

XNODEFUND WHITEPAPER xnodefund xnodefund

Pottery Research is an organization that uses knowledge of law and financial markets, where it interacts, to assist investment and business stability

Blockchain Technology. State Legislative Update July 2018

SME Banking: Financing & Digital Banking

Disclaimer. 2 Disclaimer

A commission-free, trustless futures exchange for trading digital currency prices

Blockchain Exchange Alliance (BXA) Token Sale. Led By Bithumb Global Exchange

Crusher of the Month October 2017: 0x Project (ZRX)

Tokenize it! Creation and exchange of digital assets WHITE PAPER

NWA Fund - is an entire ecosystemproviding efficient investments in crypto-assets

N O V A L E N D J O I N U S, A N D L E T S I N V E S T S T R O N G T O G E T H E R

Bitcoin Blockchain technology. Mihail Nikulin, Co-founder & CTO, Lykke

Transcription:

Introduction DEx.top Technical White Paper (V1.0) DEx.top is a decentralized exchange built on blockchain smart contract (including but not limited to Ethereum and Rootstock). DEx.top is the first of its kind that utilizes ROC mechanism (Replayed On Chain), and off-chain on-chain double ledgers to secure users digital asset. By doing so it provides users with a near instant trading experience. We are committed to provide the best digital asset trading experience with high security, speed and low-trading fees. We plan to build a decentralized exchange that is user-friendly to customers of all kinds from ordinary traders, to professionals, to quantitative traders. DEx.top emphasizes following core features: A. Decoupling assets of the users from the exchange. The users' assets are never in custody of DEx.top and therefore would not be lost even if the exchange is hacked. B. Instant trading experience. Placing, canceling, matching and executing orders are instant. 1 C. Low-Cost The combination of on-chain and off-chain ledgers lower the gas cost to the lowest amount, which ensures customer enjoy the best low-cost trading experience. A is the core strength of traditional decentralized exchanges, while B and C are the core strengths of centralized exchanges. DEx.top achieves both with its novel way of designing and driving smart contracts. We name it ROC (Replayed on Chain). Technical Background: Two Ledgers DEx.top has two trading ledgers: an off-chain ledger responsible for the instant trading experience and a smart-contract based on-chain ledger to ensure the traders assets are safe. The two ledgers are closely synchronized, where all 1 Exceptions are transferring initial tokens to the smart contract and releasing tokens from the smart contract, which require blockchain confirmation.

trading activity is first registered on the off-chain ledger and later exactly replayed (executed in the same way and the same order) and confirmed on the on-chain ledger. The on-chain ledger can be interpreted as a delayed version of the off-chain ledger, which will eventually catch up. In detail, the two ledgers work as follows: The off-chain Ledger is a virtual trading floor with instant trade settlement, hosted on DEx.top servers: - Off-chain trading: Each trader has an off-chain trading balance reflecting their on-chain trading balance. Traders can place buy and sell orders, and when orders are matched, the off-chain trading balances are updated immediately. However, the balances on the off-chain ledger are simply phantom balances and there is no actual transfer of tokens taking place off-chain. All the activity registered on the off-chain ledger must be confirmed on the on-chain ledger where the actual transfer of tokens takes place. - Private key signature: To verify the identity of the traders and to ensure that the off- chain trading activity reflects the traders' will, each trader has to sign all off-chain trading activity with the private key of the trader s on-chain account. - Off-chain / on-chain synchronization: To avoid a mismatch between the off-chain and on-chain trading balances, and to ensure that traders cannot trade off-chain with funds that they have withdrawn from the on-chain trading balance, the on-chain smart contract holds the funds of each trader to match the trader s off-chain trading allowances. Smart Contract The on-chain smart contract is the key element for the decentralized custody and settlement of assets. The smart contract safeguards the traders funds on-chain and has a very limited set of functions: - Receipt of tokens / custody: A trader is required to transfer the tokens the trader wishes to trade to the smart contract, which will be added into an account identified by the trader's public key in the smart contract. Only who has the trader's private key can trade (by signing orders with the private key) with the balances of this account. Next, the updated trading balance of this on-chain account will be reflected in the off-chain ledger and the trader can start trading. The trading allowance held in the smart contract is to ensure that the trader holds a sufficient on-chain trading balance for the off-chain trading activity.

- Update of trading balance / settlement: When the off-chain ledger communicates a pair of matching orders to the smart contract, and both orders are correctly signed with the private keys of the traders, the trading balances for both traders will be updated in the smart contract. To ensure trading is done in compliance with the DEx.top rules (e.g., approved KYC checks), the Place Order function of the the smart contract requires signature of the administrator private key, which is held by the DEx.top team. - Release of funds: Upon request of the trader, and if there are no orders outstanding on the off-chain ledger, the tokens held on the smart contract will be released to the token account of the trader 2. For verification that there are indeed no outstanding orders, the smart contract function for releasing the tokens again requires the signature of the DEx.top administrator. The smart contract has a key safety feature: It is technically impossible for the smart contract to release the assets to any account other than the trader s account, it is therefore impossible for hackers or creditors of DEx.top to gain control over the traders assets. As an additional safety feature to prevent users' assets from being locked in the smart contract, the smart contract has a release all function (callable by the DEx.top administrator) which stops trading indefinitely and releases all assets of all traders to the traders accounts. To resume trading a new smart contract needs to be deployed 3. As the smart contract is the key to the trustless trading model, it is: - Immutable: Once deployed, the smart contract is fully on-chain and cannot be changed, neither by DEx.top nor by anyone else. - Open-source: The traders do not have to trust DEx.top as DEx.top has no custody of or access to their assets. The traders simply have to verify that the smart contract is coded correctly. Therefore, the smart contract will be fully open-source and viewable to the public in the beginning. - Simple: Verifying the correctness of the code must be easy. Therefore, the smart contract is kept as simple as possible (only appx. 500 lines of code). DEx.top ensures account asset safety by following below channels: 2 An account identified by the trader's public key, which requires the trader's private key to operate. 3 The expiry of the old smart contract and the release of a new smart contract is equivalent to creating a completely independent one. A trader has to transfer the released funds again to the new one in order to trade in the new smart contract.

- The traders tokens are never held by DEx.top, only by the smart contract. - The tokens can only be traded directly from trader to trader. An order must be correctly signed by the private key of the trader, which will be verified by the smart contract when executing the order. DEx.top will not collect or store any private key of the traders. - Hacking of DEx.top off-chain trading platform can only interrupt trading, but cannot transfer any trader's assets to an account controlled by the hacker, nor placing an order for any trader. In the extreme case where the interruption cannot be recovered, DEx.top can close the on-chain ledger and release all traders' assets to their accounts. - The only risk the traders face is leakage / loss of their own private key: DEx.top does not have a copy of the private key and there is no I forgot my password functionality. Also, it is technically impossible to release the assets of a trader to an account controlled by another private key. If the private key is lost, the assets are lost. This is a general property of cryptocurrencies, not unique to DEx.top. Step-by-Step Trading To illustrate the functioning of DEx.top, please find below a step-by-step explanation of how Alice, an avid cryptocurrency trader with a few ETH, can exchange her ETH for the ERC20 token Token A. Numbers in brackets such as "(2)" signal a single trading activity that is executed both on-chain and off-chain - matching numbers indicate that it reflects the same trading activity. Time Points Off-chain On-chain 1 Alice registers on DEx.top and, after passing the KYC requirements, she can add a personal public key as her trader public key in DEx.top. She must store the corresponding private key securely in order to sign future trading actions and control her assets released from DEx.top once she is done trading on DEx.top.

Time Points Off-chain On-chain 2 Alice transfers 10 ETH to her trader account in DEx.top (identified by her trader public key). 3 (1) After Alice's transfer has been well confirmed on the blockchain, the DEx.top server will add 10 ETH to Alice's off- chain trading allowance. 4 (1) 10 ETH is added to Alice s on-chain trading balance. 5 (2) Alice places an order to buy 80 Token A at price 0.1 ETH/Token. The order must be signed by the private key of Alice and will be verified by the DEx.top server. 6 (3) DEx.top matches and executes Alice's order with an order placed earlier by Bob, selling 60 Token A at price 0.1 ETH/Token. Alice's balance is updated to (60 Token A, 4 ETH) and her order's amount is reduced by 60 to 20 Token A. Bob s balance and orders are updated as well. 7 (4) Alice cancels the remaining buy order for 20 Token A, and places an order to sell 40 Token A bought just now, at price 0.2 ETH/Token. No matching order in the orderbook for now. 8 (2) Alice places an order to buy 80 Token A at price 0.1 ETH/Token. The smart contract will verify the signature to ensure that this order is authorized by Alice. 9 (3) The smart contract matches Alice's order with Bob s order selling 60 Token A at price 0.1 ETH/Token. Update of the trading balances and orders in the same way as the off-chain ledger. The smart contract will check that the prices of the two orders are matching and check balance is sufficient or not.

Time Points Off-chain On-chain both sides have enough balances for the trade. 10 (5)Pat places an order that can fully match Alice's selling order. 11 (6)Alice's and Pat's orders are matched and executed. Alice's order is fully executed. Now Alice's balance is (20 Token A, 12 ETH). 12 (7)Alice withdraws 5 ETH. Alice's balance is updated to (20 Token A, 7 ETH). 13 (4)Alice places an order to sell 40 Token A bought just now, at price 0.2 ETH/Token. No matching order in the orderbook for now. 14 (5)Pat places an order that can match Alice's selling order. The smart contract will verify the signatures. 15 (6) Alice's and Pat's orders are matched and executed. Alice's order is fully executed. Alice's balance is (20 Token A, 12 ETH). 16 (7)Alice withdraws 5 ETH. Alice's balance is updated to (20 Token A, 7 ETH). The smart contract will check that Alice has enough balance and make a transfer of 5 ETH to the account identified by Alice s trader public key.