Bitcoin News and Finance RChain and ZB: Toward a Queueless, Leaderless, Limitless Blockchain Skip to main content

RChain and ZB: Toward a Queueless, Leaderless, Limitless Blockchain

On November 2rd, 2021, RChain‘s blockchain scientist Atticbee visited ZB exchange as an invited guest for a very technical AMA. ZB is a global exchange being in operation for 8 years with a focus on keeping customers’ assets secure. Atticbee discussed the problems of current blockchain technology and RChain’s answer to these challenges, and why one day RChain will be the most user and developer friendly Web 3.0 infrastructure.

What is Missing In All Current Public Blockchains

In Atticbee’s view, none of existing public chains has addressed these issues that are critical to Web 3.0:

  1. Currently there is NO REAL solution to the scalability problem: the scalability of Layer 2 and ETH 2.0 is an illusion because the individual Layer 2 and shard subsystems are not interoperable – they do not “look and feel” like one logical chain.
  2. They are designed for token transfer applications, not data intensive Web 3.0 applications.
  3. Contracts cannot safely call each other, lacking the “secure composability” to build large, complex software systems from smaller and simpler building blocks as in Web 2.0.

Greg Meredith, the founder of RChain, realized these pain points in 2015 when he and Vitalik, the founder of Ethereum, were working together to scale Ethereum. So he chose the concurrent, composable Rho-Calculus with on-chain formal verification capability as the computational model for the contract layer at the beginning of the design.

This technology route has many features theoretically impossible for other projects:

  1. Solves the “blockchain trilemma” with concurrent “queueless” transaction processing.
  2. One platform for all: Direct on-chain storage of large data, integrating all the functions of ETH, IPFS and GRT into one single platform.
  3. Seamless sharding: shards look and feel like one with atomic cross shard transactions.
  4. Fast on-chain formal verification based on its OSLF behavior type system.

The Root Cause of the “Blockchain Trilemma” and Its Solution

In Atticbee’s view, the “trilemma of security, performance, and decentralization”, only applies to the current blockchains that require queuing up the transactions, but not applicable to the queueless RChain.

Essentially traditional blockchains require transactions to be processed as a long queue, with all nodes in the network working together to maintain this queue. Then they are doomed to suffer from an impossible triangle of security, performance, and decentralization:

  1. For security, more nodes need to be involved in maintaining this queue.
  2. For performance (scalability), the queue needs to move forward as fast as possible.
  3. For decentralization, all nodes need to have equal opportunity to participate in the management and processing of this queue and monitor each other.

Basic logic tells us one can only choose any two of them and give up the third. Typical examples: Ethereum chooses security and decentralization over performance; Solana, a leader based system, chooses security and performance over decentralization; EOS with 21 equal nodes chooses performance and decentralization over security.

However, when one realizes that “distributedly maintaining a transaction queue is the root cause of the trilemma ”, this problem naturally gets solved if we can eliminate the need for a translation queue like RChain. In RChain’s “block-merge” test network, as more nodes are added, the network achieves higher TPS. It is a solid proof that the trilemma has been solved: more nodes means stronger security; leaderless means decentralized; higher TPS means better performance. Thus RChain reaches all three vertices of the “impossible triangle” simultaneously.

RChain VS Solana and PolkaDot — Two Examples of Flawed Solutions

When asked his view on other star projects, Atticbee thinks Solana achieves high TPS at the cost of the blockchain trust model, which is meaningless because any centralized system can have much higher TPS. The idea behind its design is simple: since it is too slow to let many nodes manage the queue together, it simply lets a Proof-of-History node decide the order and write into a tamper resistant PoH ledger. The other nodes just execute and validate the transactions in this ledger.

However, by doing this, the job of managing the queue is centralized, and the PoH node can dictate transaction order, or censor transactions at will. These malicious behaviors are almost impossible to detect and prove. Atticbee mentioned Flow as a project with a similar idea but uses a committee to decide the order, making it a more fair version of Solana, but as a cost its TPS is much lower. It is a textbook example of how a “queued system” inevitably suffers from the trilemma.

As for RChain, it doesn’t need to queue up transactions at all, so it can achieve high TPS while keeping a decentralized leaderless architecture.

Atticbee also views PolkaDot as an incomplete cross-chain solution lacking essential coordination capabilities. It has no way to atomically finalize cross chain transactions. Also it does not provide the “composable security” to ensure that when one contract located calls another contract on another para-chain through the relay chain, the permissions given won’t be leaked to others. RChain has atomic finalization of cross-chain transactions, coupled with a behavioral type system as a “on chain firewall”, making it a superior cross-chain solution.

A Global Computer with Concurrent Process Orchestration

RChain’s ultimate goal is to build a true global computer to serve as the foundation of Web 3.0. As seen from the Web 2.0 experience, the most valuable asset on the web is the vast amount of data. Therefore all existing blockchains have been built with the wrong design at the beginning: they are exclusively optimized as payment networks. A true Web 3.0 infrastructure must be designed for data-intensive applications.

In addition, we can see that existing Web 2.0 systems are becoming more complex, but thanks to componentization and containerization, developers can quickly build out large systems with smaller reusable components. However, without a fast formal verification system to ensure safe cooperations between contracts, none of the existing blockchains can achieve this. The Venus phase of the RChain roadmap tries to solve this pain point by introducing a behavior type system support. RChain’s Rho-Calculus is one of the very few models that have this capability.

Every Developer Should Start Learning Rholang

Rholang, a language based on process calculus, has long been neglected by the IT industry because of its reluctance to leave the comfort zone of current programming paradigms. However, entering the blockchain era, Rholang has a range of advantages for blockchain by its design.

First of all, its immutability makes “queueless” transactions possible. All resources in Rholang are immutable data and codes organized by channels. Atticbee made a metaphor: a contract written in a traditional language like Solidity is like a group of kids drawing on a blackboard: the order in which the kids draw will affect the final state of the board, so they must form a queue. On the other hand, Rholang is more like a group of kids playing with Lego blocks: they can pick up and assemble some blocks and then connect the product back to the common project. Since no one can “mutate” any piece, the order doesn’t matter so the kids can play at the same time.

Another important benefit of being “queuess” is that large data can be stored directly on-chain. Any data intensive transactions have to deal with the high latency of network and disk operations. The prerequisite for such transactions to be done on-chain is that they can be processed simultaneously with other types of transactions.

After the sharding milestone, RChain will have another developer friendly feature: there is no difference between writing a cross-shard contract and writing a single-shard contract.

After the Venus milestone, developers can use the behavioral type system to perform static analysis to answer questions such as: Will this code create a race condition, get into a deadlock, or leak any given permissions to a third party? These analyses can be done at compile time in Rholang, before the code runs. With this feature, now you can organize a group of contracts together on-chain and allow them to call each other safely in a concurrent setting. This advantage completes RChain’s ultimate killer feature: on-chain orchestration of contracts, or “Kubernetes on the blockchain”.

The RChain community has already built DApps that other chains can’t do by taking advantage of its on-chain data storage capability:

  1. Dappy: decentralized DNS server and browser, with NFT and wallets integrated in one package.
  2. RSong: music streaming DApp with music stored directly on-chain.
  3. RPI: a photo NFT platform with photo data stored directly on-chain.
  4. RCovid-19 Passport: vaccination certificates stored directly on-chain.

Atticbee predicts that once all the milestones are complete, the benefit of Rholang is sufficient enough to make every DApp developer adopt this new language paradigm.


This is a sponsored post. Learn how to reach our audience here. Read disclaimer below.

Comments

Popular posts from this blog

Custodial Lightning Network Service Attack Discovered by LN ‘Newbie’ — Hacker Strikes 6 LN Custodians

On September 18, a Redditor posted to the r/bitcoin forum and explained how he discovered a way to “attack [the] lightning Network’s custodial services.” The Reddit account dubbed “Reckless Satoshi” wanted to figure out if a “discrepancy between real routing fees and service’s transaction fee can be exploited for a profit.” The researcher disclosed that he wanted to see how large the damage could be and said “it is bad.” 6 Lightning Network Custodial Services Attacked, Researcher Discloses Findings to Offenders Prior to Public Disclosure A Redditor called Reckless Satoshi published a disclosure post on r/bitcoin this past Saturday and disclosed how he had found a vulnerability with routing fees and some of the Lightning Network’s custodial services. The research attack was done in good faith and after it was complete he disclosed the bugs to the offending services before publishing his findings. Reckless Satoshi used the Lightning Network (LN) attack on six different services incl...

Axie Infinity Down 40% Since Last Week’s Price High, Protocol Revenue Outshines Competitors

Last week, the game token leveraged within the Axie Infinity gaming universe skyrocketed to all-time highs, while other crypto markets remained extremely lackluster. During the last seven days, Axie Infinity’s platform token has dropped significantly in value shedding more than 12%. Meanwhile, the game platform’s smooth love potion token has slid over 8% over the last 24 hours. Axie Infinity Down More Than 40% Since All-Time High Not too long ago, the axie infinity (AXS) token was a topical conversation because it reached an all-time high on July 15. At the time, AXS managed to capture $28.93 per unit and since then it has shed 12.8% during the last seven days. The axie infinity (AXS) token is used within the blockchain-based game that involves battles between token-based creatures called “Axies.” AXS is used for the game’s governance system as well as other actions within the game. At the time of writing axie infinity (AXS) is exchanging hands for $16.70 per coin. AXS/USD on Ju...

Play-to-Earn Game From Polker (PKR) Exchange Listing – Endorsed by Akon

The Play-to-Earn NFT based Polker.Game ‘s native token $PKR has been officially listed on the popular centralized exchange BitMart. Polker.game has been in the spotlight recently as Akon, the American R&B superstar and record producer gave his official endorsement of polker stating that the “game is revolutionary” and that Polker is “hands down.. the best play to earn, NFT game in the space.”. With the BitMart listing and celebrity endorsement from Akon, Polker is perfectly positioned to become a major player in the Play-to-Earn league. Watch Akon’s Video Here What is Play-to-Earn? Although not a new concept, play-to-earn has become a trending term due to the popularity of the NFT game AXIE infinity. In the past, previous play-to-earn games have also achieved success – however, thanks to the huge amount of development in the blockchain space in recent years the gaming experience is now massively improved. Play-to-Earn games are essentially free to play and open to anyone and...

China to Crack Down on Copyright Infringement Through NFTs

Authorities in China are going after creators of digital collectibles based on other people’s works of art, the use of which was not authorized. The government offensive is part of a campaign to combat online copyright infringement and piracy with the participation of several departments. Regulators in China Move to Strengthen Copyright Supervision of Online Platforms The National Copyright Administration of China (NCAC) has recently launched a campaign against copyright infringement and piracy on the internet, together with the Ministry of Industry and Information Technology, the Ministry of Public Security, and the State Internet Information Office of the People’s Republic. A major objective of the initiative is to improve copyright supervision of online businesses by investigating cases involving the sale and distribution of infringing products on short video, live broadcast and e-commerce platforms, and promptly dealing with infringing content, the agency announced in a press r...
Blogarama - Blog Directory