Chainlink rolls out OCR system upgrade, reducing gas costs tenfold

Published at: Feb. 24, 2021

Chainlink has launched a major upgrade for its oracle network, dubbed Off-Chain Reporting, or OCR. The upgrade was announced on Wednesday, though the implementation has been live for some time already.

OCR changes how data across multiple sources is joined together by the oracle network. Previously, the process of aggregating different readings of the same desired input — for example, a token’s price — was done on-chain. Chainlink nodes would submit their individual readings of the data, which would be verified by a smart contract on Ethereum and other blockchains. This approach, while guaranteeing the reliability of the data, was inefficient in terms of gas costs, as each node would need to spend resources to publish the data.

The new architecture replaces on-chain aggregation with an off-chain consensus round. The aggregated data is then passed on to the blockchain, where a smart contract verifies that a quorum of nodes agreed on this version of the data.

Sergey Nazarov, founder of Chainlink, told Cointelegraph that the team has been working on the protocol since 2017. “We've started to put the best minds behind [it] over the last year and a half and have done substantial multiple audits on it,” he added.

The most immediate effect of the upgrade is reduced gas costs and load on the Ethereum network. According to the team, the upgrade will result in a tenfold increase in the amount of real-world data that could be available on the blockchain. As Nazarov explained, this increase is “partially related” to the gas limitations of the Ethereum blockchain:

“I think the nuance here is that we want to do this in a scalable way, basically, and we want to do it in a scalable way that works for Ethereum and various other chains. What this means is that, in times of congestion, the system should be able to continue to deliver these amounts of data because when you architect a system like this, you don't architect for the best case.”

Chainlink nodes thus could have chosen to publish more data with the previous system, though the gas costs would have made that significantly difficult. “Our system needs to be able to function even in extreme situations, which so far it has been, better than all other oracles,” continued Nazarov. “So that's the standard we need to meet. And if we suddenly increase 10x the amount of data on the current system — yeah, it could work in some good conditions and it would be costly, and it would actually raise everybody's costs, which is not something we believe in.”

But beyond the immediate effects, Nazarov believes that this upgrade will have more important effects in the future. “Really what you're seeing here now is the Chainlink network growing into something that is going to do more and more off-chain computation.”

While that does not mean Chainlink will transition to building rollups and layer-two solutions, Nazarov said there are three distinct services that the Chainlink network will soon provide. This includes verifiable randomness — a feature that has already been launched and that allows DApps to have a trusted source of random numbers, which could be particularly useful for gambling platforms and prediction markets. The other services, enabled by OCR, include keeper functions and fair sequencing, both solutions to very practical problems affecting decentralized finance.

Keepers are a type of maintainers necessary in smart contract environments. For example, some contracts require conducting periodic actions, which are normally triggered by the team or someone in the community, and formalizing this behavior is what projects like Keep3r and Fetch.ai are trying to do.

Fair sequencing is a proposed service that aims to fix front-running and miner extractable value in DeFi. The issue arises when a blockchain operator can freely rearrange transactions to their or someone else’s benefit. For example, when they see a multi-million-dollar swap about to be confirmed on Uniswap, they can quickly place their transaction to benefit from a better price.

The OCR system enables more freedom in how computations are performed on the Chainlink network, enabling new kinds of services centered around computing data instead of publishing it. Nazarov said that these ideas come from very practical needs that are unaddressed in the current market. “We generally do not want to build the pieces of the stack that we do not have to build,” he said. “We want to be the maximally positive-enabling force for smart contracts, closing all the gaps in the stack that aren't closed.”

Tags
Related Posts
A dark horse in the Ethereum scaling wars? Chainlink’s oracles find fertile ground on xDai
Chainlink (LINK) oracles have made their way to xDai, an Ethereum sidechain that has seen growing adoption among DApp developers who cannot afford to stay on the Ethereum mainnet. As announced by Chainlink on Thursday, its price feeds are live on the xDai mainnet, offering price data for an initial set of trading pairs including LINK/USD, AAVE/USD, DOT/USD and SUSHI/USD. More pairs can be quickly added if there is demand, the company said. The integration was completed by Protofire, a development workshop and xDai validator. The team received a Chainlink Community Grant to port native Chainlink oracles on xDai, including …
Technology / March 4, 2021
Warp Finance adds Chainlink oracles to protect against flash loans
Warp Finance, a DeFi lending protocol that suffered an $8 million flash loan exploit shortly after release, is now gearing up for a relaunch that will include an integration with oracles by Chainlink. The inclusion of Chainlink oracles reportedly serves as protection against similar exploits. Flash loan exploits use a feature that allows borrowing an unlimited amount of funds, as long as it is also returned within the same Ethereum block. According to the team, security experts determined that the root cause of the exploit was an exploitable price oracle. The issue seems to have been compounded by Warp Finance’s …
Technology / Jan. 8, 2021
Band Protocol CEO says that a single Chainlink data request costs $450
Band is one of Chianlink’s main competitors in the oracle space that is based on Cosmos technology. In a recent Cointelegraph interview, Soravis Srinawakoon, the CEO of Band Protocol, said: “If you look at Chainlink, one data request right now can take almost $450 because someone needs to submit the request data to ask for the data. Let's say 20 data providers need to receive that, respond to that with 20 transactions, and then the aggregation contract to do all the computation before returning the final result, all of these require a lot of gas.” Srinawakoon also provided a link …
Technology / Sept. 1, 2020
Project to provide easy-to-use multichain wallet and Ethereum-to-Polkadot bridge
A smart contract platform aimed at the decentralized finance market seeks to make it easy to transfer decentralized applications from clogged, expensive Ethereum to Polkadot. The open-source project’s goal is to create easy-to-use blockchain infrastructure that will improve the interoperability of cross-chain assets, attracting developers of DeFi projects. Clover Finance wants to build a one-stop infrastructure platform that will make it simpler and less expensive for developers of DeFi projects to migrate their DApps onto Polkadot, a potential Ethereum killer that achieves scalability by running many blockchains in parallel, each with its own design and each serving a specific purpose …
Technology / April 20, 2021
Growing list of billion-dollar crypto ‘unicorns’ suggest the best is yet to come
In the traditional investing world ‘unicorn’ is a term used by venture capitalists to describe a privately held startup valued at more than $1 billion. Typically these startups have strong fundamentals and oftentimes a first-mover advantage that helps them rapidly rise in value to become prized investment opportunities for yield-seeking funds. Some of the best-known unicorns include Elon Musk’s SpaceX, a private rocket and spacecraft manufacturer with a valuation of $46 billion, and Coinbase, the largest U.S.-based cryptocurrency exchange with a current valuation of $8 billion. While the world's attention has been focused on the Coronavirus pandemic, the outcome of …
Technology / Feb. 6, 2021