Abstract
Trading cryptocurrency on current digital exchange platforms is a trust-based process, where the parties involved in the exchange have to fully trust the service provider. As it has been proven several times, this could lead to funds being stolen, either due to malicious service providers that simply disappear or due to hacks that these platforms might suffer. In this work, we propose and develop a decentralised exchange solution based on smart contracts running on the Ethereum network that is open, verifiable, and does not require trust. The platform enables two parties to trade different currencies, limited to Ethereum and Bitcoin in the current status of the system. A smart contract, deployed on the Ethereum blockchain, functions as an escrow, which holds a user’s funds until a verified transaction has been made by the other party. To make the smart contract able to detect a Bitcoin transfer, we implement our solution by utilising an oracle. We define the system architecture and implement a working platform, which we test in a model scenario, successfully exchanging Bitcoin and Ether on the blockchain test networks. We conclude the paper identifying possible challenges and threats to such a system.
Keywords
- Cryptocurrency
- Distributed
- Exchange
- Blockchain
- Smart contract
- Oracle
- Ethereum
- Bitcoin
This is a preview of subscription content, access via your institution.
Buying options




Notes
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
kETH is used to indicate Kovan Ether.
- 12.
References
Chaum, D.: Blind signatures for untraceable payments. In: Chaum, D., Rivest, R.L., Sherman, A.T. (eds.) Advances in Cryptology, pp. 199–203. Springer, Boston (1983). https://doi.org/10.1007/978-1-4757-0602-4_18
Popper, N., Abrams, R.: Apparent Theft at Mt. Gox Shakes Bitcoin World - The New York Times, February 2014
McIntosh, R.: How to Choose Crypto Exchanges, Store Money and Avoid Scams. Finance Magnates, January 2018
Chen, L., Xu, L., Gao, Z., Shah, N., Lu, Y., Shi, W.: Smart contract execution - the (+-)-biased ballot problem. In: Okamoto, Y., Tokuyama, T. (eds.) 28th International Symposium on Algorithms and Computation (ISAAC 2017), vol. 92, pp. 21:1–21:12, Dagstuhl, Germany, Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik (2017)
Nakamoto, S.: Bitcoin: A Peer-to-Peer Electronic Cash System
Hackett, R.: J.P. Morgan Chase Is Building an Ethereum-Based Blockchain: Here’s Why (2016)
Swan, M.: Blockchain: Blueprint for a New Economy, 1st edn. O’Reilly Media Incorporated, Sebastopol (2015)
Michael, N., Gomber, P., Oliver, H., Dirk, S.: Blockchain. Bus. Inf. Syst. Eng. 59(3), 183–187 (2017)
Buterin, V.: A next-generation smart contract and decentralized application platform (2014)
Delmolino, K., Arnett, M., Kosba, A., Miller, A., Shi, E.: Step by step towards creating a safe smart contract: lessons and insights from a cryptocurrency lab. In: Brenner, M., et al. (eds.) Financial Cryptography and Data Security, pp. 79–94. Springer, Heidelberg (2016). https://doi.org/10.1007/978-3-319-70278-0
Mik, E.: Smart contracts: terminology, technical limitations and real world complexity. Law Innov. Technol. 9(2), 269–300 (2017)
Patrick, M., Shahandashti, S.F., Feng, H.: A smart contract for boardroom voting with maximum voter privacy. In: Kiayias, A. (ed.) Financial Cryptography and Data Security, pp. 357–375. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-70972-7_20
Dannen, C.: Introducing Ethereum and Solidity. Apress, Berkeley (2017)
Mansfield-Devine, S.: Beyond Bitcoin: using blockchain technology to provide assurance in the commercial world. Comput. Fraud Secur. 2017(5), 14–18 (2017)
Ying, W., Jia, S., Du, W.: Digital enablement of blockchain: evidence from HNA group. Int. J. Inf. Manage. 39, 1–4 (2018)
Li, X., Jiang, P., Chen, T., Luo, X., Wen, Q.: A survey on the security of blockchain systems. Future Generation Computer Systems (2017)
Moore, T., Christin, N.: Beware the middleman: empirical analysis of bitcoin-exchange risk. In: Sadeghi, A.R. (ed.) Financial Cryptography and Data Security, pp. 25–33. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-319-70278-0
Hallgren, J., Hallgren, M., Fisher, S., Larsen, N., Hautop, J., Ross, O.: Hallex: a trust-less exchange system for digital assets. SSRN Electr. J. (2017)
Buterin, V.: Chain interoperability (2016)
Poon, J., Dryja, T.: The Bitcoin lightning network: scalable off-chain instant payments. Draft version 0.5 9, 14 (2016)
Weldon, J.: Building an “Oracle” for an Ethereum contract (2016)
Oraclize documentation (2018)
Dourlens, J.: Oracles: bringing data to the blockchain (2017)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this paper
Cite this paper
Adamik, F., Kosta, S. (2019). SmartExchange: Decentralised Trustless Cryptocurrency Exchange. In: Abramowicz, W., Paschke, A. (eds) Business Information Systems Workshops. BIS 2018. Lecture Notes in Business Information Processing, vol 339. Springer, Cham. https://doi.org/10.1007/978-3-030-04849-5_32
Download citation
DOI: https://doi.org/10.1007/978-3-030-04849-5_32
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-04848-8
Online ISBN: 978-3-030-04849-5
eBook Packages: Computer ScienceComputer Science (R0)