Celer and Chainlink work together to build a design pattern from physical world to chain expansion

Celer and Chainlink work together to build a design pattern from physical world to chain expansion
(Picture from internet)

Today, Celer Network officially entered into a strategic partnership with Chainlink. Chainlink is a distributed oracle network designed to solve the problem of blockchain interaction with external data. Celer Network is the world's leading Layer 2 infrastructure dedicated to enabling everyone to develop, deploy and use high-performance distributed blockchain applications quickly and easily. The two partners will jointly build the physical world information obtained from Chainlink and connect to the optimized design mode of the Celer Network expansion platform.

In several hackathons last year, two projects have witnessed many developers using the techniques of Chainlink and Celer Network for decentralized application development of blockchain. This makes both parties aware of the community's need for an interactive process from the physical world to the chain. Therefore, Celer Network and Chainlink proposed a standardized design pattern: based on the oracle data network on the chain to review the conditional payment with an on-chain oracle dependency, simply to build the physics The world's bridge to the expansion of the chain.

Celer and Chainlink Optimization Design Patterns

To better understand this design pattern, let's first introduce what is based on the oracle data network on the chain to review conditional payments under the execution chain.

Alice and Bob decided to play a "paid" chess game, so the two sides bet $5 each before the game starts. Who can win this bet depends on the final win or loss of the chess game. In this particular case, conditional payment depends on the underlying status update of the game, depending on whether the future state is true or not.

If Alice loses to Bob in the game, Alice will pay Bob a chain payment through the Celer Network's off-chain service providers. The successful execution of this transaction depends on the true and false state of the future.

Currently, this design pattern has been applied to games developed by Celer based on generalized state channel technology. In the Celer Network layered architecture, the lowest-level cChannel generalized state channel can speed up transaction speed and support smart contracts. From this technical level, conditional payment under the chain is the best embodiment.

Welcome to download CelerX (https://celerx.app/index.html) developed by Celer Mobile Native SDK for the experience.

Picture 1: Celer + Chainlink design pattern

Chainlink is a decentralized oracle network that enables smart contracts to securely access out-of-chain data sources, website APIs, and traditional bank payments. Figure 1 shows how the Celer user can simultaneously conditionally pay for the design based on the Oracle data network status update on the Chainlink chain. The advantages of using this design pattern are as follows:

  • A large amount of cost reduction compared to the same logic used to write traditional smart contracts . If you use oracle logic to perform the same simple two-way bet on the blockchain, you need to make at least four transactions: two deposits, one check oracle, then one payment allocation. But with Celer's Layer 2 conditional payment function, the four online transactions will be reduced to just one oracle-related transaction.
  • Significantly enhance the user experience : For traditional chain-based methods, conditional payments can take minutes or even minutes to complete. But with the technical support of Celer Network, transactions can be completed in a few milliseconds, and the delay in user interaction will be reduced by tens of thousands of times. Celer millisecond latency presents a new real-time and interactive user experience that is unprecedented.
  • Strong privacy : Since most of the transactions and conditional solutions in the case of cooperation occur under the chain, there are no traces of transactions on the blockchain. Therefore, this provides another layer of privacy for deploying conditional payment use cases.

In summary, the technical advantages described will be translated into the application scenarios of Chainlink and Celer in various fields. A large amount of cost reduction will make it possible to pay a small amount of high frequency conditions. Before this design pattern, if you want to implement a conditional payment of $1, the cost will be as high as 20%-80% of the total (depending on the price of the gas in Ethereum). However, with this new design pattern, we can easily reduce costs by a factor of 100 using Celer's percentage-based charging model.

Chainlink's technology enables the synchronization of decentralized and centralized data reading. The current market's decentralized forecast/liquidity shortage in the derivatives trading market can also be resolved through Celer's immediate submission and cancellation of orders. This also means that SLAs that can be verified by Chainlink perform real-time payments in pay-per-use services. In the case of private forecast/derived market transactions, insurance and countless other use cases that rely on oracles, the enhanced privacy level protects the economic interests of all parties. This privacy enhancement reduces the likelihood of manipulation of real-world event data. As long as the parties are able to collaborate in the underlying solution agreement, no trading activity will be displayed on the chain. This design pattern combines the power of Chainlink and Celer to bridge real-world information to a Layer 2 expansion platform for the first time. At the same time, the generalized state channel of the Celer Network's lowest-level cChannel can perform arbitrary state updates. Therefore, the design mode can not only implement simple payment, but also effectively execute various real-world event-based application scenarios.

Project based on Celer+Chainlink design pattern

In the past hackathon, we received many projects based on this design pattern developed by developers.

Air Prediction, chain forecasting market application (https://devpost.com/software/airprediction)

Air Prediction team: "We developed the first chain forecasting market application in the history of Celer Network and Chainlink. Users can use our The application predicts any relevant events. All users can bet on the forecasting process. When the forecast is correct, the corresponding issuer will receive an application reminder and establish a conditional payment channel through the Celer Network. The Celer Network will be based on the Chainlink Oracle contract. The results provided complete the immediacy payment and do not require any chain behavior."

Air Prediction not only won the Celer cBuilder award, but also won the Ethereum hackathon Runner-up award. Since the release of Augur, everyone has been watching the dynamics of forecasting the market. However, Augur's user experience is far from ideal: orderbooks are executed on the chain, and each order takes a long time to confirm. If there is no improvement in Augur's user experience, Augur is not going to let the masses adopt it on a large scale. In addition, the slow speed of the chain transaction is unable to meet the market-making requirements, but also leads to problems such as shallow market depth and low efficiency. The Celer Network can perform predictions through under-chain conditional payments, where the "conditions" have Chainlink technical support provided by the oracle data on the chain.

Micro Subscription - Cloud Services with SLA Features (https://devpost.com/software/micro-subscription)

Micro Subscription Team: "I was inspired by the Service Level agreement example in Chainlink repo. I realized that there is currently no An effective solution to the SLA dispute. The blockchain can be used to solve this controversy. I found that most of the current cloud services are monthly subscriptions, but for users with lower usage rates, this charging model is not fair. Users should only pay for the part they actually use. There are many medium and micro payment solutions on the market, but only Celer can support conditional payment by querying the information on the chain. By conditional payment, the user can realize only the payment part. Cost.\94 The Micro Subscription app also combines Celer and Chainlink. With such a service, users can subscribe to the cloud computing service by minute, and the SLA can still be guaranteed, because when the user pays for the cloud service provider, the service provider also initiates conditional payment to the user. If Chainlink detects that the cloud service is not available, it will trigger a conditional payment and immediately compensate the user for the loss!

Based on the Celer+Chainlink design pattern for development?

Celer SDK: https://github.com/celer-network

Chainlink SDK: https://docs.chain.link

We will provide more technical analysis articles and case codes for this design pattern.

Introduction to the Chainlink project:

Chainlink is a decentralized oracle network that enables smart contracts to securely access out-of-chain data sources, website APIs and traditional bank payments. Chainlink technology has been recognized by leading research companies such as Gartner and selected as one of the top blockchain technologies. As we all know, it provides a highly secure and reliable predictor for large companies (SWIFT) and leading smart contract development teams.

Celer Network project introduction:

Celer Network is committed to building a blockchain application portal platform that matches the Internet scale based on the chain expansion technology, enabling everyone to quickly and easily develop, run and use high-performance distributed platforms on the platform. Blockchain application. At the same time of technological innovation, Celer Network exclusively created the first chain-based expansion cryptocurrency economics and token model based on game theory and auction theory, systematically and completely providing core incentives and security guarantees in the chain expansion platform. mechanism.