Decentralized Oracles: Supercharging the Enterprise Rollup Adoption
Tags: rollups
Published: 2024-01-25 09:26:37

<p><a href="https://www.zeeve.io/rollups/">Blockchain rollups</a> are the most promising solutions available right now to scale <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a> and other Layer1 blockchains. All kinds of rollups– be it based on finance use cases, <a href="https://www.zeeve.io/blog/how-tron-is-enhancing-the-blockchain-gaming-experience/">gaming</a>, <a href="https://www.zeeve.io/blog/blockchain-in-digital-identity-kyc-aml-the-decentralized-identity/">digital identity</a>, payment, or <a href="https://www.zeeve.io/blog/transforming-supply-chain-finance-with-blockchain">supply chain</a>; need to interact with real-world data available off-chain. However, retrieving off-chain data is complicated due to its decentralized nature. They need a reliable channel to be able to get accurate and trustworthy real-world data with compromising security. That’s where decentralized oracles help. With blockchain oracles, <a href="https://www.zeeve.io/rollups/">rollups networks</a> can efficiently retrieve data from external resources for the smooth working of their <a href="https://www.zeeve.io/blockchain-protocols/">blockchain network</a>.&nbsp;</p>
<p>This article explains the need of decentralized Oracles for <a href="https://www.zeeve.io/rollups/">layer2 rollups</a>, allowing everyone to understand how blockchain-based oracles are supercharging adoption of enterprise rollup while tackling all the data extraction challenges. Also, we will get a brief overview of decentralized oracles’ basics like meaning, their need, and working mechanism.</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://app.zeeve.io/auth/signup?serviceURL=https://app.zeeve.io/validium/networks"><img src="https://www.zeeve.io/wp-content/uploads/2024/01/Try-Zeeves-one-click-Polygon-CDK-deployment-solution.-1024x130.jpg" alt="" class="wp-image-57906"/></a></figure>
<h2 id="h-what-are-decentralized-oracles">What are Decentralized Oracles?</h2>
<p>Decentralized oracles are the blockchain-powered system that connects the blockchain ecosystem with various external data sources, allowing them to fetch off-chain or real-world data such as tamper-proof price feed data, external APIs, verifiable randomness, and a lot more. Decentralized oracles basically bring all such data on-chain for <a href="https://www.zeeve.io/blockchain-protocols/">blockchain networks</a>’ seamless operations. In this way, they help create one expansive blockchain network for all the blockchain ecosystems to relay data among themselves for their smooth operation.&nbsp;</p>
<p>Also, decentralized oracles are better off when compared to centralized oracles because they extract data from multiple checkpoints to provide an average aggregated price range of the <a href="https://www.zeeve.io/blog/tokenization-of-assets-how-blockchain-is-rewriting-asset-management/">assets</a>. Plus, it tackles the challenge like a single point of failure with blockchain’s distributed nature. Thereby, decentralized oracles decentralize the entire approach of off-chain data fetching, making the process reliable, safe, and effortless.&nbsp;</p>
<h2 id="h-why-do-we-need-them">Why Do We Need Them?&nbsp;</h2>
<p>Decentralized oracles are needed to prevent catastrophic events which might be triggered in the absence of better connection and exchange of&nbsp; on-chain and off-chain data. To better explain this statement, we are referring to an incident which might have been averted had there been a decentralized oracle network.&nbsp;</p>
<p>In November 2020, on the Compound Lending &amp; Borrowing protocols, the users witnessed a major glitch that cost $96.4 million to users in a matter of just a few minutes. The incident happened in the following manner. The Compound Protocol was using the Coinbase Pro as a sole oracle network for extracting the price discrepancies across multiple <a href="https://www.zeeve.io/blockchain-protocols/">protocols</a>.</p>
<p>However, due to some glitch in the network, the Compound Protocol got a wrong price feed that DAI has appreciated by 30%. In the absence of multiple oracle networks to cross-check and verify the data, the protocol liquidated all the users whose collaterals fell below a specific threshold. Additionally, even DYDX suffered along with Compound, but their losses were small in comparison to Compound, standing at $8 million. From this example, it is evident that <a href="https://www.zeeve.io/enterprise-blockchain/">enterprises</a> should consider using a decentralized&nbsp; oracle network for your applications. And, therefore, decentralized oracles are getting huge traction in the web3 space. Decentralized oracles for <a href="https://www.zeeve.io/rollups/">layer2 rollups</a>, high-traffic dApps, and <a href="https://www.zeeve.io/enterprise-blockchain/">enterprise solutions</a>, and more… the use cases are numerous.</p>
<h2 id="h-how-do-they-work">How Do They Work?</h2>
<p>The oracles work by forming a bridge between three of its integral parts: (i) Users (ii) Oracle Contract (iii) Oracle Node&nbsp;</p>
<p>The user will send a data request to answer some of their questions like;&nbsp;</p>
<li>The source the off-chain node consults for requested information gathering&nbsp;</li>
<li>The manner the data is extracted from various sources and assembled at a common checkpoint</li>
<li>The number of oracles nodes that can participate in the data gathering&nbsp;</li>
<li>The manner in which the discrepancies in the information can be managed&nbsp;</li>
<li>The methods used to filter the information and submit the consensus as a single value.&nbsp;</li>
<p><strong>It will be followed by the Oracle Contract;&nbsp;</strong></p>
<p>The oracle contract will process the request as mentioned above and relay all that data to the oracle nodes and the output data will be broadcasted back to the client’s contract. Thereafter, all the data are computed and an aggregated value is derived to send the same to the request contract. It will be sending the data with the event log that mentions all the data requests. The off-chain nodes which are subscribed to this event log will retrieve the data through a <a href="https://www.zeeve.io/blog/how-to-secure-ethereum-json-rpc-from-vulnerabilities/">JSON-RPC</a> eth_subscribe command.&nbsp;</p>
<p>The Oracle Node will extract information from external sources like APIs on the third party servers and such information is fed on-chain for the <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart-contracts</a> to consume that information. These nodes will run the event logs and verify all the requests and pull the answers that match with the request from the Oracle Node. For example, if Alice has requested to open a contract with Bob, where if the price of BTC reaches $50,000, Alice will get 2 <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">ETH</a> deducted from Bob’s balance and vice versa. The oracle nodes will verify the price of the <a href="https://www.zeeve.io/blockchain-protocols/deploy-bitcoin-blockchain/">Bitcoin</a> and relay that information to the Oracle Contract. The oracle contract will subsequently relay the information to the protocol smart-contract that will trigger the function if such events are met. In this way, the oracles bridge the off-chain and on-chain ecosystem as mentioned below in the given image.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v4psyiuftbjtew40cawe.png)
<h2 id="h-how-do-decentralized-oracles-supercharge-the-rollup-environment">How Do Decentralized Oracles Supercharge the Rollup Environment?</h2>
<p>When thinking of building a scalable, enterprise-grade <a href="https://www.zeeve.io/rollups/">rollup ecosystem</a>, you first have to understand that over-burdening the Base L1 chain might increasingly make operations complex. For context, even Vitalik Buterin, the founder of <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a> has reiterated that subjectivity-exploitability trade-off is the need of the hour for scaling the rollup ecosystem. Why? Because, it provides the subjectivocratic security function that Oracle Governance provides. How? For context, as you know that L2 chains/<a href="https://www.zeeve.io/rollups/">rollup chains</a> have a separate ledger. So, if you are planning to bridge the assets of the L1 chain with the L2 chain, the L2 chain will have to pass the validity proofs for token minting and burning on the L1 chain.</p>
<p>However, there’s a possibility that a malicious actor can fork an L2 chain and create a parallel chain that duplicates the original chain to mint new <a href="https://www.zeeve.io/blog/tokenization-of-assets-how-blockchain-is-rewriting-asset-management/">assets</a> or burn assets on the main chain. To avoid such a situation, decentralized oracles in <a href="https://www.zeeve.io/rollups/">layer2 rollups</a> drive the possibility of Oracle Governance by offloading excessive computation from the main L1 chain. In this regard, the Oracle Network can be used for routing upgrades to the L2/rollup chain.&nbsp;</p>
<p>If a new chain is forked or created, it can import the state of the ledger from the Oracle Network Governance and create a new state of the roll-up that continues from the last state of the erstwhile <a href="https://www.zeeve.io/rollups/">rollup network</a>. The decisions can be easily governed by enshrined oracles that will form a governance protocol with token bound governance and it could even help forking specific scenarios instead of the entire chains and taking necessary actions to resolve disputes.&nbsp;</p>
<p>These aspects are very much needed when you are running an enterprise grade rollups because there might be times when you need to resolve a particular event and not completely fork the chain. In this regard, the dependency on the Oracle Network Governance will be paramount in building the next generation of enterprise grade <a href="https://www.zeeve.io/rollups/">rollup solutions</a> which are scalable, cost-efficient and secure for enterprise grade adoption.&nbsp;</p>
<h2 id="h-some-popular-oracle-networks-and-how-they-function">Some Popular Oracle Networks and How They Function</h2>
<h3 id="h-chainlink">Chainlink&nbsp;</h3>
<p>Chainlink is a decentralized oracle network that allows smart-contracts to automate the transfer of data between blockchains. Chainlink uses a <a href="https://www.zeeve.io/blockchain-protocols/">decentralized network</a> of independent entities or oracles to collectively retrieve data from multiple checkpoints/ Chainlink Oracles Nodes, bundle them together, compute the same data and produce a validated single output to the smart-contract to execute a function.&nbsp;</p>
<h3 id="h-red-stone">Red Stone&nbsp;</h3>
<p>Red Stone is another next-gen oracle solution that offers affordable storage, on-demand fetching , flexible data streams, data integrity and cross-chain oracle solution to help scale the decentralized ecosystem. It uses a smooth data relay function to empower the <a href="https://www.zeeve.io/blockchain-protocols/">blockchain ecosystem</a> which significantly lowers the cost because Redstone uses a meta-transaction pattern which verifies&nbsp; data integrity through signature checking. Hence, <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart-contracts</a> can check the signature and execute the function.&nbsp;</p>
<h2 id="h-use-zeeve-s-raas-to-launch-production-grade-rollups-in-a-few-clicks">Use Zeeve's RaaS to Launch Production-Grade Rollups in a Few Clicks</h2>
<p><a href="https://www.zeeve.io/">Zeeve</a> enables creation of <a href="https://www.zeeve.io/rollups/">L2 rollups</a> at significantly low-cost and faster time-to-market with its vast network of integration partners and modular <a href="https://www.zeeve.io/rollups/">RaaS stack</a>. Zeeve supports access to decentralized oracles for layer2 rollups as an easily pluggable component. Developers or businesses launching their <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic</a> or <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">ZK Rollups</a> with Zeeve can integrate reliable oracles like RedStone and ChainLink oracle with their L2/L3 <a href="https://www.zeeve.io/rollups/">rollups</a> or <a href="https://www.zeeve.io/appchains/">appchains</a>.&nbsp;</p>
<p>Also, <a href="https://www.zeeve.io/">Zeeve</a> has added supports for the leading <a href="https://www.zeeve.io/rollups/">Ethereum rollup framework</a>, such as <a href="https://www.zeeve.io/appchains/optimistic-rollups/">OP Stack</a>, <a href="https://www.zeeve.io/appchains/arbitrum-orbit-rollups/">Arbitrum Orbit</a>, <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a> and <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkStack</a>. You can <a href="https://www.zeeve.io/rollups/">launch a rollup chain</a> from scratch with Zeeve’s modular RaaS offering one-click deployment Sandbox along with a range of other important integration options such as DA layer from Avail, Eigen Layer, and Celestia, <a href="https://www.zeeve.io/blog/zeeve-integrates-biconomys-account-abstraction-sdk-in-its-modular-raas-stack">Biconomy</a> and Halliday for <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">Account Abstraction (AA)</a>, and Radius for Decentralized Sequencer, <a href="https://www.zeeve.io/subgraphs/">Subgraph</a> for data indexers, etc. For more information on <a href="https://www.zeeve.io/rollups/">Zeeve’s rollup-based services</a> and other&nbsp; blockchain solutions, talk to our experts. <a href="https://www.zeeve.io/talk-to-an-expert/">Schedule one-to-one call</a> or drop your queries via email on this page.</p>