Investigation on a price oracle problem

  • Kashif Mehboob Khan Department of Software Engineering, NED University of Engineering and Technology, Karachi Pakistan
  • Rida Taufique Department of Software Engineering, NED University of Engineering and Technology, Karachi Pakistan
  • Maryah Abdul Rauf Department of Software Engineering, NED University of Engineering and Technology, Karachi Pakistan

Abstract

The core of blockchain smart contracts is the execution of business logic code in a decentralized architecture with all executing nodes trusting and agreeing on the results. Smart contracts are unable to get data from the outside world on their own. Smart contracts communicate with oracles, which are off-chain data sources whose primary function is to collect and give data feeds to smart contracts. The usage of oracle returns the blockchain to its centralization problem and also exposes the blockchain to the possibility of introducing corrupt, malicious and erroneous data. This problem is called ‘Oracle problem’. This paper presents an investigation of this problem. To demonstrate this, we have considered the price oracle problem using chainlink’s decentralized network of nodes that connects off-chain data to on-chain smart contracts through oracles. Finally, we performed an analysis and comparison on retrieving external off-chain data through external APIs (Application Programming Interfaces) and through decentralized oracles. This would be helpful in determining how decentralization (through oracles) may result in performance constraints in contrast to fetching data through our own built APIs where data source APIs of blockchain are not connected to the decentralized nodes of network. The results have shown the increase in transaction throughput of the overall system.

Published
Oct 1, 2022
How to Cite
KHAN, Kashif Mehboob; TAUFIQUE, Rida; RAUF, Maryah Abdul. Investigation on a price oracle problem. Mehran University Research Journal of Engineering and Technology, [S.l.], v. 41, n. 4, p. 138-145, oct. 2022. ISSN 2413-7219. Available at: <https://publications.muet.edu.pk/index.php/muetrj/article/view/2691>. Date accessed: 09 nov. 2024. doi: http://dx.doi.org/10.22581/muet1982.2204.14.
This is an open Access Article published by Mehran University of Engineering and Technolgy, Jamshoro under CCBY 4.0 International License