Hybrid Smart Contracts by Chainlink

Published on: 18.05.2021
Hybrid Smart Contracts by Chainlink

Chainlink defines the role that hybrid smart contracts play within emerging blockchain-based trust models and showcase the many decentralized services that Chainlink oracles provide to extend their capabilities.

A hybrid smart contract is an application that consists of two parts: 1) smart contract—code that runs exclusively on the blockchain, and 2) decentralized oracle network(s)—secure off-chain services that support the smart contract. The two components interact with one another seamlessly and securely to form a single hybrid smart contract application. The result is on-chain code that is augmented in a variety of unique and important ways, opening up many new use cases that would not be possible through on-chain code alone due to technical, legal, or financial constraints.

Hybrid smart contracts synchronize two distinctly different computing environments to create a superior application that neither a blockchain or an oracle network could achieve alone, particularly because each environment specializes in providing features that the other does not. On-chain code runs in an extremely secure and limited-functionality blockchain environment with a reduced attack surface area, providing users a high-degree of execution and storage determinism—the code will run exactly as written and results will remain permanently and immutably stored. Conversely, DONs run off-chain and thus offer infinitely more functionality flexibility and data accessibility.

With hybrid smart contracts defined, let’s explore the many decentralized services available through Chainlink DONs that can greatly enhance a smart contract. The decentralized services will be split up into two broad categories: off-chain data and off-chain computation.

🔹Off-Chain Data

DONs can be used to bridge various types of external data to and from blockchains, enabling hybrid smart contracts to be written around those specific pieces of data. Some of the initial data types made accessible include:

  • Price Feeds — asset price data that’s been aggregated from hundreds of exchanges, weighted by volume, and cleaned of outliers and wash trading.
  • Proof of Reserve — up-to-date data about the current reserve balances backing tokenized assets, such as the BTC reserves collateralizing WBTC or the USD bank account collateralizing TUSD.
  • Any API — premium data from password-protected APIs, ranging anywhere from weather forecasts and sports match results to information from an enterprise backend and IoT network.
  • Blockchain Middleware — abstraction layer for an off-chain system to read and write data to and from smart contracts on any blockchain network.

🔹Off-Chain Computation

DONs can perform a variety of off-chain computations on behalf of the smart contract to help it achieve specific inputs or generate certain features not possible on its specific blockchain, such as privacy, scalability, and order fairness. Some of the current and upcoming off-chain computations possible through DONs include:

  • Keeper Network — automation bots that perform regular maintenance tasks for the smart contract, waking it up when it needs to perform key on-chain functions.
  • Off Chain Reporting (OCR) — scalable aggregation of oracle node responses in a DON that are then delivered on-chain in a single transaction to reduce on-chain costs.
  • Scalable Computation — high-throughput, low-cost contract execution for standalone smart contracts, which syncs on-chain periodically using existing layer-2 technology.
  • Verifiable Randomness Function (VRF) — secure and verifiable random number generation backed by cryptographic proofs that prove process integrity.
  • Data and Computation Privacy — privacy-preserving oracle computation that makes sensitive data confidentially available to smart contracts using zero-knowledge proofs (DECO), trusted hardware (Town Crier), secure multi-party computation, and/or using select DON committees.
  • Fair Sequencing Services (FSS) — decentralized transaction ordering based on a predefined notion of fairness, preventing frontrunning and miner extractable value (MEV).
  • On-Chain Contract Privacy — transaction privacy for a smart contract via a decorrelation between the contract logic and settlement output, using the DON to relay communication between the two parts such as with Mixicles.

What is Chainlink?

Chainlink is the most widely used and secure way to power universally connected smart contracts. With Chainlink, developers can connect any blockchain with high-quality data sources from other blockchains as well as real-world data. Managed by a global, decentralized community of hundreds of thousands of people, Chainlink is introducing a fairer model for contracts. Its network currently secures billions of dollars in value for smart contracts across the decentralized finance (DeFi), insurance and gaming ecosystems, among others.

📰 INFO:

https://blog.chain.link/hybrid-smart-contracts-explained/

Market Stats:
BTC Dominance: 54.23%(-0.18%/24h)
ETH Dominance: 15.44%(+0.27%/24h)
Defi Market Cap: $90.21B(-14.85%/24h)
Total Market Cap: $2438.19B(+1.38%/24h)
Total Trading Volume 24h: $65.57B(-18.75%/24h)
ETH Market Cap: $376.2B
Defi to ETH Ratio: 23.98%
Defi Dominance: 3.52%
Altcoin Market Cap: $1115.9B
Altcoin Volume 24h: $41.31B
Total Cryptocurrencies: 29756
Active Cryptocurrencies: 9963
Active Market Pairs: 82316
Active Exchanges: 765
Total Exchanges: 8549
BTC: 67100.58$(-0.01%/1H)
ETH: 3133.28$(0.46%/1H)
AVAX: 37.28$(-0.39%/1H)
BNB: 580.64$(0.1%/1H)
MATIC: 0.72$(0.15%/1H)
FTM: 0.86$(-0.01%/1H)
ADA: 0.48$(0.3%/1H)
DOT: 7.18$(-0.14%/1H)
UNI: 7.66$(0.55%/1H)
CAKE: 2.69$(0.01%/1H)
SUSHI: 1.11$(0.04%/1H)
ONE: 0.02$(-0.22%/1H)