What Is a Blockchain Oracle? An Introductory Guide

Do repost and rate:

Oracles are interfaces between the blockchain and the physical world. Blockchains are isolated ecosystems, so they cannot fetch data from the real world. This guide will clarify the basic concept of blockchain oracles and address the pros and cons of the technology.

Want to get all the hottest news on popular blockchains? Join BeInCrypto Trading Community on Telegram: read news, discuss crypto, ask for technical analysis on coins and get answers to all your questions from PRO traders! Join now

In this guide:

  • Oracles on the blockchain
  • How do oracle protocols work?
  • Oracle’s weaknesses
  • The future of oracles
  • Frequently asked questions

Oracles on the blockchain

was created as a peer-to-peer electronic cash system. Yet crypto natives soon understood the original blockchain’s potential to have a broader impact. Today, Bitcoin has multiple applications, as well as the simple exchange of But it cannot gather data from the real world. So, an oracle machine is required to act as a connective

Blockchain use for external data

A decentralized exchange built on Bitcoin (or any other blockchain) requires the exchange rates of cryptocurrencies. However, the system can only access the data through oracles. For example, decentralized finance (DeFi) applications could not work without access to exchange rate data.

Insurance or prediction markets need a feed of information about real-world events. Oracles are bridges that allow data from the real world to be written into smart contracts. Outside , real-time data is also needed: for the prediction markets to pay winning bets or for insurance to solve disputes.

Problems with existing oracles

Using a centralized oracle on decentralized technology would render the whole application centralized. So early Bitcoin developers and enthusiasts had to solve this problem — by developing oracles specifically for emerging decentralized platforms.

How do oracle protocols work?

There are many oracle protocols, of which Chainlink is likely the best known. Here are a few of the top original blockchain oracles and how each works.

Reality.eth (RealityKeys)

Reality.eth (previously RealityKeys) is widely liked for its simple, unique design and functionality. The protocol’s underlying idea consists of “creating” knowledge for smart contracts rather than drawing on an already existing data source.

When a piece of data is needed, a question is made to the protocol. Users who know the answer can then submit a response. The answer is accepted unless challenged by another user. The question is presented to an external arbitrator (usually Kleros, a decentralized court) if a dispute isn’t solved.

Truthcoin

Truthcoin (Hivemind) likely inspired later projects such as or DelphiSystems. The protocol exploits focal points as a solution to a coordination problem. Reporters on Truthcoin can vote on the outcome of an event listed in the prediction market, staking vote coins representing the reporter’s reputation. If the outcome voted is not a “focal point,” the reporter’s vote coins are slashed. Otherwise, they receive a reward. Truthcoin is one of the few existing oracles that still support the Bitcoin blockchain and uses a sidechain to reduce the computational impact on the main net.

Provable Things (Oraclize)

Provable Things (previously Oraclize) was a precursor to modern oracles such as Chainlink. The underlying idea is inspired by the concept of “flow control,” which refers to IF/THEN statements. It is used in computer science to create a chain of actions. For example, the user clicks the right mouse button, perform this action.

A Bitcoin script may state, “ this condition is met, perform this transaction.” Oraclize verifies the condition thanks to a “proof-of-authenticity.” This shows the data gathered was not altered before being written into the smart contract.

Oracle’s weaknesses

Intuitively, the data collection methods mentioned have to collect data have weaknesses. Let’s take a look.

Economic incentives

The economic incentives, such as a reward for playing “by the rules,” works only if the reward is higher than the return gained by defying the rules. Furthermore, it cannot prevent irrational behavior, such as taking punishment on purpose to harm the platform. Finally, given the volatility of the crypto space, there’s no real guarantee of higher returns if playing by the rules in the long term. If the platform, or token price collapse, the same will be for the reward of honest oracles.

Bugs and malfunctions

There are still yet-to-be-accepted standards for oracle contracts. As such, the ones written by developers may experience malfunctions.

If, to save costs, the contracts are not audited by a specialized company, they may contain bugs that have dramatic consequences on the platform’s performance. On the other hand, if the oracle performs well, the data source may prove unreliable, resulting in poor performance.

Sybil attacks

schemes, a Sybil attack refers to the practice of someone impersonating multiple agents to manipulate elections. 

On the blockchain, Sybil attacks are hazardous due to the pseudonymity of users. Decentralized oracle protocols based on voting schemes are exposed to this type of attack.

The future of oracles

Plenty of different oracle designs exist, all with unique features. However, all are still inspired mainly by the programs mentioned above. Unfortunately, as the many hacks and manipulations in the space show, none has proven unbreakable.

There has been growing interest in the field of late, so we can expect more unique and robust oracle designs in the future. Limiting the use of oracles would also be an interesting path to follow. Liquidity pools introduced by Bancor Protocol are an example of DeFi applications that do not require oracles to operate.

Frequently asked questions

What are oracles used for? 

  • Oracles are “black boxes” that feed automatic machines with data they cannot gather by themselves.

What is the purpose of oracles in crypto? 

  • Unless alternatives are found, oracles are indispensable to fetching real-world data. Therefore, they are necessary for almost any DApps. Oracles are also utilized for blockchain interoperability.

What does oracle mean in blockchain?

  • The meaning of the word oracle is still ambiguous. It may refer to the data feed, the contract that aggregates the data, the agent that fetches the data, and the protocol that operates the data transfer.

Are oracles strictly necessary for real-world applications?

  • Luckily not. Protocols such as Uniswap do not require oracles and derive the price of tokens with a mathematical formula. In the future, more applications will be completely automated and thus freed of oracle dependencies.

About the author

Giulio Caldarelli is an independent researcher affiliated with the University of Verona. He has a Ph.D. in Economics and Management and his main area of research concerns Blockchain Oracles and the Oracle Problem. He is currently investigating how the Oracle Problem affects different real-world applications and has written various articles and a book on this matter. Above academic research, he is devoted to teaching and spreading knowledge on Blockchain, DeFi, and of course, Oracles.

Disclaimer

All the information contained on our website is published in good faith and for general information purposes only. Any action the reader takes upon the information found on our website is strictly at their own risk.At Learn, our priority is to provide high quality information. We take our time to identify, research and create educative content that is useful to our readers.To maintain this standard and to continue creating awesome content, our partners might reward us with a commission for placements in our articles. However, these commissions don't affect our processes for creating unbiased, honest and helpful content.

Regulation and Society adoption

Ждем новостей

Нет новых страниц

Следующая новость