?>

What are Oracles and Why Do Smart Contracts Need Them?

2.6 k views
the relation between oracles blockchain and cryptocurrency

“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 software world, the word keeps much of what it 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, which is trusted to provide accurate and fair information. In addition, 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 data 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 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 have been 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 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 have third-party reliance clauses. There may be contracts that need data fed to them to make the necessary decisions. This is where a Blockchain, specifically Smart Contracts, stretches 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. One can make a smart contract and have it executed on a blockchain with complete 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. Unfortunately, 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, one faces difficulties that could not have been foreseen when developing.

Is Third-Party Reliance Justified on a Blockchain?

Since smart contracts execute decisions based on oracles’ data, they are critical 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 Contracts 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. So 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 fulfilling the agreement. Oracles, being outside the blockchain, are subject to influence, just like any centralized entity.

Oracles are not part of the leading blockchain consensus. Furthermore, they are, unfortunately, not part of the security mechanisms that public blockchains can provide. As a result, the trust conflict between third-party oracles and the trustless execution of smart contracts remains a primarily 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 bridge the gap between the blockchain’s virtual immutability and the apparent problem of information propagating Oracles?

Bitcoin coin symbol
Btc
Bitcoin
$62.547
price
red chart
decrease symbol0.84959%
price change
TRADE NOW

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

Previous

WMA: Bitcoin price drops after failing to conquer the $10k barrier

Next

On-Chain Metrics Suggest Bitcoin Is About To Drop To $7,000

Written by

186 posts

Sudarshan M is a long-time crypto-enthusiast. Pulled in by bitcoin early on, it did not take long for Sudarshan to divert all of his academic attention from business studies to the blockchain by doing his Masters and eventually pursuing his Ph.D. in the subject.

VIEW AUTHOR

More author posts

The Difference between an ‘Open-Community’ and ‘Closed-Network’ Blockchain

R3 is a consortium of about 200 firms coming together to research and develop distributed database models somewhere along Bitcoin's lines. Usually, they receive a lot of heat as they say they are researching a corporate or private model of "Blockchain" but are developing a version of Distributed Ledger Technology (DLT). This debate between a Public Blockchain and a Private Blockchain (yes, it's an oxymoron) is the center of great distress. Another such debate that hasn't reached the mainstream yet,…

How to Invest in Cryptocurrencies – 10 Must-Follow Tips

The Cryptocurrency world is filled with scams, frauds, pump-and-dump schemes, and dozens of other ways by which people can steal your money. Along with that, the excruciating volatility of the market doesn't help either. It is easy for any new investor to be scared off by an already-infested market with so many money-losing schemes. But then, don't we always say, "greater risk comes greater reward"? In still-nascent and budding markets, there are as many ways of making money as there are…

Looking for an XRP Wallet? Here are the Best Ripple (XRP) Wallets

Ripple (XRP) is a cryptocurrency project created by Chris Larsen and Jed McCaleb under Ripple Labs. It was primarily built as a digital asset to overcome several international banking problems, cross-border payments, and sourcing liquidity. As a result, XRP has remained among the top 10 cryptocurrencies by market cap since 2017. The main target audience of XRP is banks and payment providers, where the speedy settlement time can function as a liquidity source. This allows Ripple to tap new and…

The 21M Bitcoin Mystery – The Origins of Satoshi Nakamoto’s Supply Cap Decision

The Bitcoin Solution With the advent of Bitcoin came a newfound revolution - a revolution in distributed computing, decentralized organizations, and, most importantly, in the borderless medium of exchange. To many, Bitcoin represents a form of hope, a mechanism that would finally help the world get rid of centralized power and control. To others, Bitcoin was nothing more than an alternative for money. Satoshi Nakamoto, the pseudonym behind Bitcoin's creation, saw their invention as nothing more than an experiment. To…

Looking at Public Blockchains vs. Private Blockchains

Blockchain is a distributed, decentralized public ledger, which is a continuously growing list of records stored in the form of blocks. These blocks in a blockchain are connected through cryptography, which keeps the transactions' confidentiality intact. A blockchain is a time-stamped series of immutable (tamper-proof) records of data, which is not managed by a central authority but by a computer cluster. Every data shared on a blockchain is visible to all participants, and everyone is accountable for their actions. A…

Cryptocurrency Cards – Which are the Best Crypto Cards Providers?

Cryptocurrency is great, right? You buy, store, spear through the volatility, and eventually hope to accumulate profit several times greater than your initial investment. That is the plan of a large majority of cryptocurrency HODLers. But wait, is that what crypto is all about? Buy, HODL, and Sell? Wasn't cryptocurrency a global, decentralized innovation made a reality by blockchain technology? Shouldn't it be used globally by now, given its ever-increasing market interest? With the advent of Cryptocurrency Credit/Debit Cards, the…

Publish your own article

Guest post article. Guaranteed publishing with just a few clicks

START PUBLISHING ADVERTISE WITH US

Browse categories

Explore trending topics in the crypto community right now.

Bitcoin

SEC Greenlights Multiple Bitcoin ETFs, Signaling Major Leap for Cryptocurrency Markets

The U.S. Securities and Exchange Commission (SEC) has made a landmark decision by approving 11 spot bitcoin exchange-traded funds (ETFs). This move represents a significant moment in the cryptocurrency industry, marking a shift towards greater institutional adoption and accessibility for investors. The approved ETFs include products from major firms such as BlackRock’s iShares Bitcoin Trust, Grayscale Bitcoin Trust, ARK 21Shares Bitcoin ETF, Bitwise Bitcoin ETP Trust, WisdomTree Bitcoin Fund, Fidelity Wise Origin Bitcoin Trust, VanEck Bitcoin Trust, Invesco Galaxy Bitcoin…

Bitcoin Should be Banned in the United States: Charlie Munger

Berkshire Hathaway’s vice chairman, Charlie Munger, called for a ban on cryptocurrency in the United States on Monday, similar to the one in China.  In an op-ed published with the Wall Street Journal, Munger argued that Bitcoin isn’t a currency, commodity, or security, but simply a form of gambling “ with a nearly 100% edge for the house. As such, the enactment of a federal law should ban such things from happening. Munger cited the Chinese communist party’s ban on…

Tesla’s BTC Positions Remained Unchanged in Q4 of 2022

According to a new earning report from automotive manufacturer Tesla, the company did not sell any of its BTC holdings in the fourth quarter of 2022. Amid speculations that the company had traded BTC during the testing bears, CEO Elon Musk revealed it was yet holding on to its BTC stash. Tesla Maintains Holdings After Initial Sell-Off In Q2 of 2022, Tesla opted to sell 75% of all its BTC. The car manufacturer received close to $950M in exchange. Notably,…

Here’s When Grayscale Debates the SEC in Court on its Bitcoin Spot ETF

The District of Columbia Court of Appeals has marked a date for when Grayscale and the Securities and Exchange Commission (SEC) may present oral arguments regarding the approval of a Bitcoin spot ETF.  Each side will present its case at 9:30 am ET on March 7, with the SEC arguing against the product, and Grayscale arguing in favor.  Grayscale VS SEC The court date – revealed in a court order filed on Monday according to CNBC – is much earlier…

MORE ARTICLES

Ethereum

Ethereum’s Zhejiang Staking Withdrawal Testnet for Shanghai is Live

At 15:00 UTC on Wednesday, the much-anticipated Zhejiang testnet for staking withdrawal went live on Ethereum’s Beacon chain. Zhejiang will enable the testing of the Ethereum Improvement Proposal (EIP) 4895 which allows for staking withdrawals. This is in preparation for the network’s next major update, the Shanghai hard fork slated to launch sometime in March. Users Can Make Simulated Withdrawals with Zhejiang In a tweet yesterday, DevOps engineer at Ethereum foundation Barnabas Busa gave details about the Zhejiang testnet slated…

Ethereum Devs Disagree Over Technical Tweak as Shanghai Upgrade Nears

Post-merge Ethereum users have been eagerly awaiting the commencement of the network’s next major upgrade, Shanghai. However, after over 3 months of prep time, it appears the Shanghai rollout isn’t going as smoothly as expected. What Exactly is the Shanghai Upgrade? In September last year, the much-publicized Ethereum Merge also known as the Ethereum 2.0 upgrade went live. Ethereum underwent some significant changes as its consensus mechanism transitioned from proof-of-work to a cost-efficient proof-of-stake system.  However, since the Beacon launch…

FTX Hacker Converts 50k Stolen ETH to BTC

Per a report from blockchain analysis firm Chainalysis, the attacker behind the Nov 11 FTX exploit, is converting the stolen ETH to Bitcoin. There were muted fears the seemingly inexperienced perpetrator could dump all its ETH holdings. On Sunday, the attacker dumped 50k ETH on-chain, with ETH's price dipping by almost 7%.  https://twitter.com/chainalysis/status/1594349583416840199?s=20&t=pgvQHeVytI20eKQ1ls9bxw Hacker Moves 50,000 ETH to New Address Over the past week, the perpetrator had been steadily swapping the cryptocurrencies they had carted off for Ether tokens. This…

Censorship Concerns: 51% of Ethereum Blocks Now OFAC Compliant

According to new data, over half of the blocks on the Ethereum network now reportedly comply with the US Treasury OFAC’s standards. This comes roughly a month after the platform’s monumental merge update. Phasing Out Tornado Cash The Office of Foreign Assets Control is the intelligence and enforcement agency of the US  Treasury Department. Indeed, the OFAC administers and enforces US  financial sanctions. A prime example of this is the recent, highly-publicized ban on crypto mixer Tornado Cash.  According to…

MORE ARTICLES

Trading

How to Leverage Arbitrage Opportunities in Crypto Markets

Cryptocurrency arbitrage has become an increasingly popular investment strategy as the crypto market grows and evolves. Arbitrage involves taking advantage of pricing discrepancies between markets or exchanges to profit.  Investors can leverage profit opportunities by understanding cryptocurrency arbitrage while managing associated risks. In this guide, we'll explore cryptocurrency arbitrage and how it works. A Bitcoin-related example will help us illustrate the concepts of this strategy. What is Arbitrage and How Does it Work in Crypto Markets Crypto arbitrage trading is…

The Different Types of Copy Trading in Crypto

Are you interested in trading cryptocurrencies but feel intimidated by the complexity of the process? Copy trading is a great way to get into crypto without needing to be an experienced trader. With copy trading, investors can benefit from the experience and knowledge of more experienced traders, allowing even beginners to succeed. How does copy trading work, and which tips do you need to know to succeed? In this article, we'll explore all aspects of copy trading in crypto. What…

How to Spot an Unsafe Crypto Exchange

Cryptocurrency exchanges have become increasingly popular as they provide a platform for people to buy and sell digital assets. Unfortunately, not all crypto exchanges are safe or reliable.  With the rise of cybercrime and fraud, you must learn to spot an unsafe crypto exchange before investing your money. This guide will help beginners identify and avoid potential risks when selecting a cryptocurrency exchange.  The Role of Crypto Exchanges on the Digital Assets Market Cryptocurrency exchanges play a crucial role in…

What Is Grid Trading in Crypto?

Crypto grid trading has become a popular strategy because of its ability to help traders capitalize on market volatility. Grid trading means you can produce consistent profits by taking advantage of price differences in different markets or time frames. By establishing buy and sell orders at predetermined intervals, you can take advantage of these fluctuations in an automated way. This guide will explore the different aspects of grid trading and provide an overview of its benefits, challenges, and more. Through…

MORE ARTICLES

Tech

Introducing una Messenger: A Paradigm Shift in Blockchain Connectivity

The digital landscape is set for an unprecedented transformation with the introduction of una Messenger, the latest innovation from web3 development powerhouse Wemade. This platform represents an evolution of the "PAPYRUS Messenger," serving as the cornerstone of the ambitious "unagi" initiative, aimed at catalyzing the mass adoption of blockchain technology. The "Unbound Networking & Accelerating Growth Initiative" seeks to bridge the divides between diverse blockchain services and networks, heralding a new era of interconnectedness. A New Frontier in Blockchain Communication…

Bit2Me Champions WEMIX Token in Pioneering European Listing

Bit2Me, Spain's premier virtual asset exchange, has recently broadened the horizons for cryptocurrency enthusiasts by listing WEMIX, the cornerstone token of the WEMIX3.0 blockchain ecosystem. This marks a notable achievement as WEMIX's inaugural venture into the European market, emphasizing the token's role in facilitating a range of blockchain-based activities, from gaming transactions to decentralized finance (DeFi) applications. Launched with the intention to democratize access to WEMIX for the 450 million Spanish speakers around the globe, this strategic move aligns with…

CryptoVirally Expands with Fresh Crypto Marketing Offers and Cointelegraph Upgrades

In an exciting update for the cryptocurrency marketing landscape, CryptoVirally has announced a series of new entries and enhancements to its already comprehensive range of services. These updates, aimed at providing tailored marketing solutions for crypto projects, include new limited-time offers and expanded options for Cointelegraph publications. Limited Offers: A Game-Changer in Crypto Marketing  CryptoVirally's limited offers section presents an enticing opportunity for crypto projects to leverage high-impact marketing services at discounted rates. These offers, available for a limited period,…

Breaking Boundaries in Blockchain: WEMIX’s ‘una Wallet’ Sets New Standard for Multi-Chain Asset Management

The WEMIX Foundation has unveiled 'una Wallet,' a revolutionary digital wallet designed to offer unparalleled convenience and security in managing digital assets across various blockchain networks. The announcement, made on January 17, 2024, signifies a new era in the seamless integration of multiple blockchain protocols, including Arbitrum, Avalanche, BNB Smart Chain, Ethereum, Kroma, Optimism, Polygon, and WEMIX3.0. 'una Wallet' is more than just a digital wallet; it represents the culmination of WEMIX's innovative efforts in the blockchain space. It serves…

MORE ARTICLES