What are Oracles and Why Do Smart Contracts Need Them?

What is an Oracle?

“An oracle is a person or agency considered to provide wise and insightful counsel or prophetic predictions or precognition of the future, inspired by the gods” – this is the literal definition of an oracle. When moving to the world of Software, the word keeps much of what they used to mean, with a few tweaks here and there.

Leaving aside predictions and Godly figures, Oracles are, in a strict software sense, external data feeds used by software engineers and developers to embed applications that collect real-time data. Oracles are entirely based on the needs of the application. An Oracle is usually a third-party service that responds to queries and answers questions. It is, in essence, a data provider.
In common practice, the data provided by Oracles is manually and periodically updated by a third party, who is trusted to provide true and fair information. Oracles retrieve and verify external data for all forms of applications and software through methods such as web APIs or market data feeds.

Say Yahoo Finance needs to show the price of Gold at a particular time. Its back end API is assigned an oracle service, to which it will contact and receive the current price. Big enterprises and data providers like Yahoo Finance, Facebook, Google, etc., cannot depend on just one oracle for propagating information as it might be prone to manipulation. In such cases, a consensus-based oracle is used, which takes in information from numerous sources and projects all means.

Where do Oracles Fit in on the Blockchain?

Blockchain oracles are third-party services that provide smart contracts with external information. They serve as bridges between blockchains and the outside world. Blockchains and smart contracts cannot access off-chain data (data that is outside of the network). However, it is vital for many contractual agreements to have relevant information from the outside world to execute certain agreements.
This is where blockchain oracles come into play, as they provide a link between off-chain and on-chain data. Oracles are vital within the blockchain ecosystem because they broaden the scope in which smart contracts can operate. Without blockchain oracles, smart contracts would have minimal use as they would only have access to data from within their networks.

Smart Contracts and Their Reliance on Oracles

Ever since the advent of Ethereum, Smart Contracts are the buzz within the community. Hundreds, if not thousands, of prospective use cases have been developed, some even finding their usefulness in real-world use cases. Among others, IBM, Microsoft, and Ethereum have already successfully developed applications that rely heavily on Smart Contracts.

Smart Contracts by themselves are just pieces of code that bind two or more parties together in a virtual agreement. The agreement that binds the parties may be simple or could have clauses that involve third party reliance. There may be contracts that need data fed to them to make the necessary decisions. This is where a Blockchain, and Smart Contracts specifically, stretch out a hand into the outside world. Oracles solve the problem of third party reliance.

The reliance is justified because Smart Contracts are the first usable and scalable medium on the internet that can execute pre-specified arrangements without the fear of hindrance. Meaning, one can make a smart contract and have it executed on a blockchain with full confidence that it will be fulfilled, given the conditions are met, and no party will hinder its outcome.

But, as the saying goes, every cloud has a silver lining. People often forget that a silver lining has a cloud in return. On paper, smart contracts seem to be the ultimate solution to the immutable agreement problem on the internet. Still, when trying to develop, one faces difficulties that could not have been foreseen.

Is Third-Party Reliance Justified on a Blockchain?

Since smart contracts execute decisions based on oracles’ data, they are key to a healthy blockchain ecosystem. The main challenge with designing oracles is that if the oracle is compromised, the smart contract relying on it is also compromised. This is often referred to as The Oracle Problem.

For Smart Contract to rightly execute as per the agreement, they have to rely on outside information providers, which in most cases are oracles. For instance, say I get into a bet with my friend that my favorite team will win the world cup, and he says otherwise. We decide to enforce the same on a smart contract and tag it on a particular blockchain, ensuring the execution.

Since a Smart Contract is not Smart, it has to rely on other entities’ information to execute itself. Considering the locked amount in a Smart Contract is sufficiently large enough to motivate either party to hinder the outcome, one of us can manipulate the Oracle provider to propagate wrong information, thus profiting without actually fulfilling the agreement. Oracles, being outside the blockchain, are subject to the influence, just like any centralized entity.

Oracles are not part of the main blockchain consensus. They are, unfortunately, not part of the security mechanisms that public blockchains can provide. The trust conflict between third-party oracles and the trustless execution of smart contracts remains a mostly unsolved issue.

And thus, the debate arises: what can be done to solve the censorship problem? Is it still legit to call a blockchain immutable and censorship-resistant when something as novel as oracles can be manipulated to change the outcome? What can be done to bridge the gap between the blockchain’s virtual immutability and the apparent problem of information propagating Oracles?

Bitcoin live price
price change

The Concept of Decentralized Oracles, i.e., Oracles that are consensus-based, is often thrown around as a possible solution to the infamous Oracle Problem. Projects like Chainlink are spearheading this idea by developing tools that allow you to distribute trust among oracles. We will look further into the concept in the future.

Stay up to date with our latest articles

More posts

A Guide to Collateralized Loans in DeFi

Hodling is the favorite sport of long-term crypto investors. However, keeping your assets in a crypto wallet for years can have negative consequences. Firstly, unless their value increases, you do not accrue any profits. Secondly, it limits market liquidity and, therefore, hinders its growth. Fortunately, you can help solve both problems with collateralized loans. This short guide to crypto lending discusses how collateralized loans work in decentralized finance. Read on to discover how to use this DeFi tool in your…

What is NFT Lazy Minting – A Beginner’s Guide

The enormous success of the NFT usage over the last quarters is remarkable. Therefore, we are not surprised to see an ongoing innovation trend in the NFT market niche in this context. However, creating NFTs can be struggling on several occasions, especially for new traders and artists. Today we will look into the lazy minting practice, an innovative idea that has recently become popular in the blockchain industry. Before doing that, however, it is essential to spend a few words…

What Is CBDC In Crypto?

The cryptocurrency trading revolution exploded more than ten years ago and led to an almost unprecedented economic and financial earthquake. As a result, people are learning to change their approach to payment and investment systems, pushing up the price of many cryptocurrencies. Such a rapid change has not gone unnoticed on the boards of the world's major central banks. In fact, in an increasing number of countries, central banks are working on launching centralized digital currencies, known as CBDC. This…

How Social Leaders on Shrimpy help Investors Maximize Profits from Crypto Trading

The emerging trend of social trading allows millions of investors to interact with their peers and learn from accomplished traders in the crypto market. Every market participant wants to become a profitable crypto trader and maximize earnings from the ongoing crypto boom. Unfortunately, navigating the highly volatile space while grasping the complex learning curve that involves fundamental/technical analysis can be rather daunting. Becoming successful in the crypto market requires time to develop a working strategy that empowers investors to execute…

Decentralized Exchanges 2022: Which is the Best Crypto DEX to Trade on?

Market experts believe that the survival and growth of crypto largely depend on decentralization. The good news is that decentralized exchanges or DEXs have become highly popular, and the crypto market sees this as an opportunity to save the essence of traditional blockchain. Each decentralized exchange platform has the potential to revive and thrive crypto market. Moreover, each new DEX platform comes with its own set of features. There are several methods to use DEXs and make money.  Decentralized exchange…

Top Crypto Exchanges for Beginners in 2022

Investing in crypto is not as complex as most people think. So if you’re curious and optimistic about the rise of crypto, there is no reason to hold back and dive into it. Remember, it is normal for beginner investors to get caught in the cobweb of endless crypto exchanges. As a beginner investor, your objective should focus on the best crypto exchanges to make the right investment decisions. Whether it’s Bitcoin or Ethereum, cryptocurrencies continue to be at the…

Top 10 Cryptocurrencies in January 2022

Cryptocurrencies had a great year in 2021. In this period, we have seen the market go from being classified as a billion-dollar economy into a trillion-dollar economy. Aside from that, cryptocurrencies are gaining visibility in the mainstream world with, for example, El Salvador's adoption of Bitcoin as the official digital currency. As a result, investors are looking for the "new Bitcoin" on the market, hoping to find a great alternative in so-called altcoins. Unfortunately, many traders value an altcoin exclusively…

The Story Of Bitcoin And Ethereum’s Reversed Blockchains

Decentralization is the primary selling point of the three worlds of Bitcoin, crypto, and the web. There are several reasons for this. Some are related to the increased transactional efficiency that decentralization can provide. Others are related to creating permissionless, censorship-resistant digital networks. The most important is that decentralization weakens any single-point-of-failure, hence bolstering network security. This not only keeps a network as close to unbiased and ‘neutral’ as possible but almost guarantees its immutability. Yet the crypto world hasn’t…

What Are the Best Crypto Prediction Sites?

There are now several websites that provide, besides crypto live prices, some forecasts on the future of the leading cryptocurrencies. However, considering the market’s high volatility and the few analysis tools available to the public for formulating these forecasts, it must monitor these portals carefully. This article will report some of the primary sources of price forecasts in the crypto industry. However, we remind you that the information contained in the text does not constitute financial advice, and we invite…

Why Do the Cryptocurrency Prices Go Down on the Weekends?

If you have been in the crypto world for a while, you will probably have noticed a typical behaviour of the market during weekends. With some exceptions, we are used to seeing the price of significant cryptocurrencies drop over the weekend. The phenomenon is known to those who operate in this market, but understanding precisely the causes seems to be rather complex. Therefore, this article will discuss a definitive answer by analyzing the various main factors involved in this market…