Blockchain and Decentralized Oracles: Use Cases for the iExec Oracle Factory

Avinash Pathare
iExec
Published in
7 min readAug 3, 2021

Over the past few years, we’ve heard a lot about the importance of decentralized oracles in the context of blockchain. Why have decentralized oracles become almost synonymous with Ethereum applications? What use cases do oracles make possible? And are there any tools that could ease the deployment of decentralized oracles?

Today, blockchain and smart contracts bring a new paradigm to the world. People can now have total trust in the execution of a piece of code. With this, the dream of a world without a central authority becomes a reality, and decentralized applications (Dapps) embody this new shift.

Imagine you’re a developer, inspired by blockchain, first discovering the wonderland of Ethereum. Your next step would be to code a smart contract that solves a real-world problem. To do this, you need to use data from the real world. But wait, there’s one problem: blockchains are totally siloed from the internet! This is where Decentralized Oracles come in.

Decentralized oracles serve as a messenger, transmitting off-chain information to its intended destination on the blockchain. By using blockchain-level consensus, the off-chain information is verified and ready to be used in decentralized applications. Oracles play an important role in blockchain-based architectures.

If you’re building a decentralized application on Ethereum, trying to solve a real-world problem, chances are you’ll need to connect to the real world… Learn more about why we need Decentralized Oracles here:

This is why iExec will release the iExec Oracle Factory, a user interface allowing anyone to create their own oracles from scratch, directly from their browser! In 5 minutes, even without any blockchain knowledge, anyone will be able to deploy a ‘trusted decentralized oracle’. Being able to integrate Intel SGX hardware enclaves as TEE, users can create trusted oracles in minutes (try the interactive demo for iExec ‘Trusted’ Oracles here).

We’ll now look at some industry use cases for decentralized oracles, and how the iExec Oracle Factory can fit into each, with its three types of actors: Oracle Provider, Dapp Developer, and User.

Industry Use cases for Decentralized Oracles and The iExec Oracle Factory

The Insurance Industry

One of the main issues within the insurance industry is transparency. Data inequality is a problem in the insurance business, which occurs when one side in a transaction has more information than the other, creating a situation where one party can take advantage of the other.

The customer buying insurance (policyholder) has a greater knowledge of their own assets’ real value and present condition (personal health, vehicle, property, or other). The insurance company, on the other hand, has little information. They must depend on the information provided by the policyholder, to establish the risk profile, premiums, and deductibles of the insured. In addition, the policyholder’s claim payments must be approved by the insurance company. The process of approval is slow and manual without any transparency.

The Oracle Solution:

An oracle-based blockchain solution will monitor data through an API (the data source for oracles) and transmit required event information for the insurance to the blockchain (for example, flight information for travel insurance). The blockchain, with the assistance of smart contracts and oracles, verifies whether the events that were previously determined have occurred or not (such as flight delays, flight cancellations, etc). This is achieved through blockchain consensus. Smart contracts will then be able to control the flow depending on event data supplied by oracles (such as when the plane finally took off) that occurred.

Therefore, blockchain with oracles will provide full transparency to the insurance process. People can track status and data at every phase and will get clarity with the process. Similarly, insurance companies can also ensure the user data is genuine. Oracles in insurance also provide a completely trustless automated solution, claims to payment.

The iExec Oracle Factory in the Context of the Insurance Industry:

  • Oracle Provider: Oracle provider can be anyone with a data source or API in the form of JSON. Let’s take the example of a flight insurance scenario. The oracle provider can be anyone with an API of flights: they can convert this API into oracle with iExec Oracle Factory and list it on our gallery where people can buy it or integrate it in their decentralized applications.
  • Dapp Developer: Insurance companies or individuals can use the oracle to source their oracle used in a Dapp that tracks flights and verifies insurance claims.
  • User: The Dapp user can be an insurance company or individual who can use this Dapp to automate the insurance process and track their own claims.

The Prediction Market Industry

A prediction market is a marketplace where predictions are bought and sold. You buy shares in a business on the stock market. In a prediction market, you may choose to buy or sell shares following a real-world event. Prediction markets may assist in the prediction of any measurable event, such as the weather, an election, or economic development.

Mostly, the current prediction market is centralized, lacking diversification in the sources used to create prediction scenarios, and has many other limitations. Prediction markets are segmented and separated by borders, capital restrictions, and government regulation. Traders and regulators serve as gatekeepers, limiting who has access to the markets and what they may bet their money on. As a result, the forecasting abilities of these markets are severely limited. Fees are charged by centralized prediction markets in the form of trading costs, profit cuts, and withdrawal fees, among other things.

The Oracle Solution:

Blockchain technology can decentralize this prediction market. Everyone is invited to trade on any result, anyplace, anytime. In addition, members have the opportunity to set their own market.

Trustless, peer-to-peer prediction markets were once considered to be just a dream. But now, with the development of blockchain technology and cryptocurrency, they are finally becoming a reality.

Advantage: fees are generally low and likely to become non-existent over time.

The iExec Oracle Factory in the Context of the Prediction Market Industry:

  • Oracle Provider: Oracle provider can be anyone with a data source or API in the form of JSON. For example, the price of the stock. The oracle provider can be anyone that owns an API for stock prices. They can convert this API into a decentralized oracle with iExec Oracle Factory. Then, they can list it on our gallery where people can buy it or integrate it into their decentralized applications.
  • Dapp Developer: They can be a company or individual who can use the oracle and create a Dapp for prediction where people can bet on stock prices.
  • User: The Dapp user can be an individual who can use this Dapp to predict and see outcomes for the stocks, interacting directly with other participants in a decentralized peer-to-peer, knowing they do not need to trust a centralized service.

The Betting Industry

When we make a wager, we are implicitly trusting the other party to pay us if we win. As a result, when dealing with individuals we don’t know or trust, we avoid betting with them directly and instead choose to do it via an intermediary such as a casino or other gambling services. We anticipate that the law, or perhaps the casino’s reputation, will assist us in enforcing good behavior. The current online or offline gambling portals are not fully transparent and we have to trust them. These portals can be rigged and outcomes might be altered.

The Oracle Solution:

Using a decentralized oracle, it can now be safe to wager on random events with a stranger. Dapps, portals, or protocols can be built on top of blockchain for placing decentralized and trustless bets on real-world events. Users can stake money on the outcome of digital dice, cards, or roulette, without need for trust or centralized entities. These protocols employ a series of oracles to enter the outcome of the event that the bet is based on into the blockchain. The winner will be revealed when a sufficient number of oracles have declared the same outcome for the event. These protocols can be designed to shift the money to one of the players in that situation automatically, thus oracles do not take control of the prize; instead, they choose between two probable outcomes.

The iExec Oracle Factory in the Context of the Betting Industry:

  • Oracle Provider: The oracle provider can be anyone with a data source or API in the form of JSON. For example, for a random dice generator. The oracle provider can be anyone with an API of random dice generator. So that they can convert this API into oracle with iExec Oracle Factory and then list it on our gallery, ready for developers to use.
  • Dapp Developer: They can be a company or individual who can use the oracle factory to source their oracle, ready to be used in a decentralized application for gambling where people can bet on outcomes.
  • User: The Dapp user can be an individual who can use this Dapp to gamble and see outcomes.

A major part of the iExec Adoption Roadmap is to make easy-to-use product interfaces that demonstrate the benefits of decentralized and secure technology. iExec has already released three interactive demo interfaces demonstrating, iExec Decentralized Cloud Computing, iExec Trusted Decentralized Oracles (using TEE), and iExec Confidential Computing with Blockchain. Check them out!

The iExec Oracle Factory will be the first of its kind, option for anyone to create, list, browse and use oracles all from a dedicated web page — from the most advanced blockchain developer to the crypto novice. V1 of the iExec Oracle Factory is expected to be released later in the year. iExec has various ideas for community events and competitions for this, so whether you are a developer or just a follower of iExec, keep an eye out for chances to get involved!

💡 Want to learn more about iExec? Check out iExec Academy!

iExec Academy aggregates all content related to the project. You’ll find articles, tech documentation, videos, interactive demos, and much more! Whether you are a beginner or an expert, a developer or crypto-enthusiast, you’ll find what you are looking for on iExec Academy!

📚➡️ https://academy.iex.ec

--

--