Cointime

Download App
iOS & Android

Oracles: A Blockchain Tool Of Connect

Validated Project

Bitcoin popularized the decentralization paradigm with the concept of programmable money. The bitcoin (cryptocurrency) transfers are transparent and occur in a peer-to-peer fashion without requiring any intermediaries. Further, Vitalik explored the technology behind- blockchain and unleashed its true potential by showing how programmability can be incorporated into it using smart contracts. A technology once considered a digital currency is now researched worldwide, and many potential use cases related to various domains not confined to the financial sector, have been developed.

Smart contracts were the ones which helped widen the application domain. But smart contracts have severe challenges and boundaries, unlike other programming languages.

How does blockchain work?

A blockchain network is a decentralized network of participants. Each participant will have an immutable ledger for recording the transactions. Every transaction within the ecosystem will be received and verified by all the participants in that system. The blockchain will have a well-defined consensus mechanism- a rule for deciding which transactions should be recorded in the ledger. Based on the consensus, verified transactions are added to the ledger. The essence of decentralization lies in the consensus mechanism, which ensures an unbiased decision verifying the transaction and ledger updates.

There comes our first challenge. A blockchain can verify the transactions only if it has the background data for verification. For example, if a cryptocurrency transaction needs to be verified, it should have the earlier balance of the sender and recipient of that transaction. This is possible in the case of token transfers since all the transfers occur only via blockchain, and smart contracts can access these. But what about the transactions in a supply chain? How will blockchain verify a transaction that needs to record a fact like“ Vehicle A has reached the location ABC with X kg of mangoes”?

Blockchain creates a restricted system environment which is separated from the real world. Smart contracts are programs running on a blockchain which can only passively receive the data into the chain but cannot actively obtain the data out of the chain. A large number of blockchain use cases are based on retrieving and storing real-time data: like location, temperature, price, quantity, quality etc. For this, we need specific services which can feed real-time data onto the smart contracts. They are termed Oracles.

Oracle

Wikipedia defines an oracle as a person or thing that provides wise and insightful counsel or prophetic predictions. The word is believed to be related to Greek culture, referring to divine revelations given by priests or equivalent persons as a response to an inquiry.

A blockchain oracle is defined as an external data agent that observes real-world events and reports them back to the blockchain to be used by smart contracts[3]. Oracle comprises an entire system that collects off-chain data, verifies it and transmits it to smart contracts on the blockchain. An oracle may consist of three elements, as shown in below figure.

The data source can be a sensor (measuring temperature, humidity etc.), a Web Application Programming Interface (which provides access to data recorded in other off-chain applications like stock markets, crypto-exchanges), manual data entry, etc. They are considered trusted data sources. The oracle nodes (service) collect data from the data source, certify accuracy, and convey reliable data to the smart contract. It can be a node, a group of nodes or any trusted environment. A smart contract in the blockchain will have a code that governs the processing based on input data.

These three parts may not exist separately from each other. Oracles are classified based on these entities’ organizations and their tasks.

Types of Oracles

Oracles are classified based on various properties[3].

  1. Data Source: Depending on the external data source, oracles can be classified into hardware, software, and human. Hardware oracles use specific devices like sensors and scanners to gather data. Software oracles use programmed interfaces to collect data like schedules, price data and exchange rates. Human oracles refer to the manual entry of data.
  2. Trust Model: The number of nodes in the oracle network defines the trust model of an oracle. A centralized oracle may be depending on a single source, whereas a decentralized oracle gathers data from multiple sources and reaches a decision based on a consensus mechanism. Provable and Town crier are centralized oracles. Chainlink is a decentralized oracle which acquired Town Crier.
  3. Design Pattern: Oracles can be designed in a request-reply setup, where the smart contract initiates a request serviced by an off-chain element. In a publish-subscribe design pattern, an oracle keeps track of fluctuating data like market prices, temperature etc. Updated data will be broadcasted to its subscribers. The immediate-read pattern is helpful in quick response scenarios like academic certificates or dial codes.
  4. Interactions with external data sources: Interactions can be classified as inbound or outbound. Inbound oracles feed data from external sources to the blockchain (eg reading input data from a sensor and storing it in the blockchain). In contrast, outbound oracles allow smart contracts to deliver data to the external world (eg sending a notification once a blockchain payment is received).

The Oracle Problem

As mentioned before, the consensus mechanism is responsible for the trustless data on the blockchain, which confirms their reliability. At the same time, Oracles skip the consensus mechanism and provide external data to the blockchain without any standard verification. This license gives oracles the privilege to insert arbitrary data on the blockchain.

Since oracles operate separately from the blockchain, they do not guarantee the decentralization, immutability and transparency of the blockchain environment. If any trusted third party is providing the oracle service, it raises some serious questions like

  • Can that third party be trusted?
  • What if the data provided is incorrect?
  • What if the data was recorded correctly but edited by attackers?
  • Won’t that be a single point of failure?

The Oracle problem puts forward these concerns that question the inclusion of oracles which make blockchain adoption risky for specific real-world scenarios. Thus the centralization of oracles raises the Oracle Problem which brings the puzzle between efficiency and decentralization when oracles fetch real-world events data from external data sources [3].

So if a smart contract-based application uses oracles to access external data, proper audit measures should be incorporated to ensure security. If the external data source is not trustworthy, it will affect the credibility of the entire smart contract, which works based on that data and even questions the role of blockchain.

References

[1] Lin, SY., Zhang, L., Li, J. et al. A survey of application research based on blockchain smart contracts. Wireless Netw 28, 635–690 (2022). https://doi.org/10.1007/s11276-021-02874-x

[2] Caldarelli, G. Overview of Blockchain Oracle Research. Future Internet 2022, 14, 175. https://doi.org/10.3390/fi14060175.

[3]H. Al-Breiki, M. H. U. Rehman, K. Salah and D. Svetinovic, “Trustworthy Blockchain Oracles: Review, Comparison, and Open Research Challenges,” in IEEE Access, vol. 8, pp. 85675–85685, 2020, doi:10.1109/ACCESS.2020.2992698.

[4]https://ethereum.org/en/developers/docs/oracles/

Image Courtesy: Flaticon

(By Sumi Maria Abraham, Research and Development Engineer, Kerala Blockchain Academy)

Comments

All Comments

Recommended for you

  • Fed's Williams: One More Rate Hike This Year is Appropriate, No Need for Hikes in 2027

    On October 14, Federal Reserve's Williams stated that one more rate hike this year is appropriate; currently, he believes there is no need for rate hikes in 2027. There are no signs that the labor market is driving inflation, and apart from the AI and energy sectors, no widespread price pressures are observed in other areas.

  • BTC Falls Below $83,000

    Market data shows that BTC has fallen below $83,000, currently priced at $82,988.08, with a 24-hour increase of 0.56%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Bank of America: S&P 500 Earnings Growth Expected to Slow, Analysts Warn of Limited Valuation Tolerance

    On October 13, according to Jin10 news, Bank of America (BofA) has compiled data indicating that despite strong earnings expectations for the S&P 500 index in the third quarter, earnings growth is expected to slow in 10 out of 11 sectors compared to the previous quarter. Industry research shows that analysts anticipate the earnings growth rate for S&P 500 constituents to decrease from 25% in the third quarter and 28% in the fourth quarter of 2026 to 18% in the first half of 2027, indicating a slight weakening in the overall earnings outlook. Luca Paolini, Chief Strategist at Pictet Asset Management, noted that early signs suggest that the momentum for earnings growth may be peaking; given the high threshold for earnings growth expectations, even slightly disappointing results could trigger severe market reactions.

  • Iran Claims US Naval Forces Have Significantly Withdrawn

    On October 13, Iranian Navy Deputy Commander Farahmaz Beimani stated that US naval forces have significantly withdrawn, moving away from Iran's maritime borders. Deputy Commander Beimani said, 'The enemy has significantly retreated from our maritime borders and is maintaining distance from our waters as much as possible. US naval vessels, destroyers, and aircraft carriers have all significantly withdrawn.' (CCTV)

  • Goldman Sachs CEO Denies Succession Rumors, No Transition Plans or Timelines

    On October 13, Goldman Sachs CEO David Solomon downplayed recent rumors regarding a potential leadership transition at the company, calling them mere 'noise.' Goldman Sachs COO John Waldron has long been viewed as a potential successor to Solomon. Recent reports suggested that Solomon might step down as early as next year, bringing the timing of a leadership transition at Goldman Sachs back into market focus. During a conference call with analysts on Tuesday, Solomon stated, 'I want to be clear: Goldman Sachs currently has no succession plans in progress, nor any related timelines. The board and I are fully focused on the company's growth strategy and continuing to provide excellent service to our clients.' He added that he is satisfied with the company's progress, which makes him enjoy his current role even more.

  • Wells Fargo CEO Says Bank is Preparing for U.S. Crypto Stablecoin Opportunities

    On October 13, the CEO of Wells Fargo stated that the bank is preparing for potential crypto stablecoin opportunities in the United States. (Watcher.Guru)

  • Russia Detains Japanese Journalist Suspected of Espionage

    Russia has detained a Japanese journalist suspected of engaging in espionage activities. (International News Agency)

  • New White House Press Secretary Holds First Press Conference

    Today (October 13), the new White House Press Secretary, Katie Zakaria, held her first press conference. The position of White House Press Secretary has been vacant since Levitt's departure at the end of August. On October 9, U.S. President Trump announced on social media the appointment of conservative commentator Zakaria to succeed Levitt. Zakaria previously served as a senior communications advisor for the 'Real Social' website under the Trump Media Technology Group and has also held the position of spokesperson for the Department of Homeland Security and Deputy Assistant Secretary for Public Affairs. (CCTV International News)

  • Israel to Impose Temporary Ban on Fiber and Cellular Network Controlled Drones

    On the 13th local time, according to Israeli sources, Israeli Defense Minister Katz will sign a special security order prohibiting the use of fiber-guided and cellular network-guided drones in Israeli airspace.

  • Meta Rises Over 3% with Launch of 'Most Powerful' Muse Wonder Series Models

    On October 13, Meta (META.US) rose by 3.7%, reaching $770.49. In news, Meta officially launched the Muse Wonder series models, which include the performance-focused Muse Wonder and the complete version Muse Wonder Full. The new models are reported to match the capabilities of OpenAI's ChatGPT and Anthropic's Claude in tasks such as programming, finance, and legal issues. Zuckerberg stated on social media that Muse Wonder represents a larger scale and more advanced capabilities than the previous Muse Spark models, marking Meta's advancement to the forefront of AI capabilities.