This article is a Chinese translation of the English report "Understanding Nervos Network (CKB): A Comprehensive Overview" written by Messari. This translation is for reference only and has no legal effect. In case of any ambiguity, please refer to the original English text. We have made every effort to ensure the accuracy of the translation, but we are not responsible for any errors or omissions that may be caused by the translation. All rights in this report (including but not limited to copyright, trademark rights and other intellectual property rights) belong to Messari. The publication of this Chinese translation has been authorized by Messari. When reading, using or disseminating this translation, please abide by the same terms of use and restrictions as the original English version.


Summary

  • #Nervos Network expands on Bitcoin’s core technology with a scalable layer of blockchain powering #比特币 Layer 2 (L2).

  • To improve the programming limitations of Bitcoin, Nervos Network adopts a customized model (Cell model) for state storage and a customized virtual machine (CKB-VM) to execute transactions.

  • Nervos expands Bitcoin’s usability through RGB++, an asset issuance protocol based on the original RGB protocol that aims to position CKB as Bitcoin’s execution layer and data availability layer.

  • Since the launch of the RGB++ protocol on the #CKB mainnet, transaction activity on the CKB network has revived, with nearly 400,000 new addresses added in April, a 181% increase from March.

  • Work is underway to integrate the payment channel network into the Lightning Network, which will make CKB more scalable and suitable for a variety of blockchain applications.

background

As the largest cryptocurrency, Bitcoin continues to gain adoption and recognition. However, its success has also exposed some limitations and challenges, especially in terms of scalability. For example, after the Segwit upgrade, the Bitcoin blockchain has limited the block size to 4 MB, which limits the number of transactions that can be processed in a given time. As the network grows, this limitation leads to longer confirmation times and higher transaction fees, making Bitcoin less efficient when processing large transaction volumes. Compared to other blockchains, Bitcoin's scripting language currently lacks the flexibility and expressiveness required to develop complex smart contracts in addition to value transfer.

To address these limitations, multiple Layer 2 (L2) solutions have been proposed, such as payment channels, sidechains, and rollups. Most of them aim to scale Bitcoin by processing transactions off-chain, attempting to increase transaction throughput without compromising the security of the base layer. For example, the Lightning Network creates a second-layer payment channel network that allows near-instant small payments. Another approach is sidechains — independent blockchains connected to the Bitcoin mainchain with greater scripting possibilities and faster transactions. However, these solutions often come with trade-offs, such as increased complexity, trust assumptions, and potential security vulnerabilities.

Nervos Network is one of the Bitcoin scalability solutions that takes a more native approach and modifies the UTXO model that underpins Bitcoin. It improves the RGB protocol to provide Turing-complete contract capabilities for Bitcoin without the need for cross-chain bridges. Nervos Network was established in the first quarter of 2018 by Terry Tai, Kevin Wang, Cipher Wang, and Daniel Lv. It is a Layer 1 blockchain designed to improve scalability. To drive the development of the network, the project team raised more than $100 million in funding from seed rounds, private rounds, and public offerings. In November 2019, Nervos Network's Layer 1 blockchain, Common Knowledge Base (CKB), went live. In February 2024, CELL Studio, led by Nervos co-founder Cipher Wang, launched RGB++, a Bitcoin layer 1 asset issuance protocol. Inspired by the RGB protocol, the RGB++ protocol uses CKB as a data availability and execution layer to enable smart contract capabilities and asset issuance for Bitcoin. Since RGB++ went live on the mainnet in April 2024, the number of projects using RGB++ to issue assets on Bitcoin has continued to increase. As of June 2024, there are 15+ existing ecosystem projects that have revitalized CKB's on-chain activities.

technology

Source: Nervos Network

Nervos Network adopts a layered architecture, including an L1 blockchain (Common Knowledge Base, CKB) that can be extended through payment channels and RGB++. The Cell model is an improved version of Bitcoin's UTXO accounting model, and CKB-VM is a customized virtual machine that supports the layered design of the network. CKB-VM provides a flexible execution environment for initiating transactions or building applications on the network. This design allows the network to scale vertically by running dedicated components at each layer, similar to a modular blockchain.

Common Knowledge Base

CKB is the underlying L1 blockchain of the Nervos Network, which operates in a similar way to Bitcoin, using a Proof of Work (PoW) consensus mechanism. It uses NC-MAX, an upgraded version of the Bitcoin algorithm, to improve network efficiency and responsiveness by speeding up transaction confirmation times and reducing orphan block rates. Bitcoin targets a 10-minute block interval and adjusts mining difficulty approximately every two weeks. CKB dynamically adjusts the block interval (approximately every four hours) based on changes in network activity to optimize performance.

CKB secures the network using the Eaglesong function, an ASIC-neutral custom hash function that is an alternative to the widely used SHA256 hash function. Eaglesong is a sponge function that optimizes multiple cryptographic elements to provide the same level of security as other proof-of-work (PoW) hash functions, while being tailored specifically for the Nervos Network.

Cell Model

Source: Nervos Network

The Cell model is the core of the CKB data structure, which can store and verify any data on the chain. Bitcoin's original script language and UTXO model limit its ability to perform complex calculations required by smart contracts. In contrast, CKB generalizes the UTXO model to allow more flexible data storage and verification. Unlike Bitcoin, which uses a single script to verify transactions, CKB introduces dual scripts in its Cell model:

  • The Lock Script ensures that only authorized users can access and use the contents of the Cell, similar to Bitcoin.

  • Type Script is an optional script that sets rules for how the cell can be used or changed in future transactions.

This system enables CKB to support more features than Bitcoin's limited options, making it more suitable for a variety of applications. Each Cell in CKB is a programmable Cell that can hold different data types, such as tokens, smart contracts, and specific application states. It can also run complex scripts similar to those in Turing-complete languages. Cells run independently, which means they can be updated or referenced without affecting other parts of the blockchain, improving scalability through parallelism.

CKB-VM

CKB-VM is CKB's execution engine for running smart contracts and decentralized applications. The virtual machine uses the RISC-V instruction set, a flexible, simple, open source hardware architecture set (ISA) that supports multiple programming languages, including popular languages ​​such as C and Rust. This wide compatibility sets CKB-VM apart from other blockchain virtual machines that are typically limited to specific languages, opening it up to a wider developer community. The CKB network also supports SDKs for mainstream languages ​​such as JavaScript, Rust, Go, and Java, making it easier for developers to develop with familiar tools. This makes it easier for developers to create complex decentralized applications using familiar programming languages.

In addition, CKB-VM's architecture provides predictable gas fees, secure execution, and efficient integration with the Cell model, which helps to effectively manage states and verify transactions. The predictable gas fee model avoids unexpected fees, improves user experience, and simplifies contract development.

RGB++ Protocol

Source: Nervos Network

CKB extends Bitcoin using the RGB++ protocol, an asset issuance standard that extends Bitcoin’s functionality on CKB. The RGB++ protocol enables complex smart contracts and asset management operations that are typically not possible on the Bitcoin network. The original RGB protocol was an L2 solution designed to enable smart contracts and asset issuance for Bitcoin without changing the Bitcoin mainnet. It works by binding assets to specific Bitcoin UTXOs, allowing those assets to be transferred as the UTXOs themselves are transferred. The RGB protocol relies primarily on client-side validation, with transactions processed and validated off-chain, reducing the load on the Bitcoin network. However, this approach also has limitations, such as potential issues with data availability — since data is not stored on-chain, it may not be readily accessible when needed. Additionally, the reliance on client-side validation adds complexity that can affect user experience.


Nervos Network addresses these limitations with the RGB++ protocol, which extends and enhances the principles behind the original RGB protocol by using CKB as the data availability and execution layer for Bitcoin. RGB++ enables seamless integration with CKB's Turing-complete smart contracts by mapping Bitcoin UTXOs to CKB's Cells through isomorphic binding technology. This is achieved by leveraging CKB's layered architecture and Cell model, allowing Bitcoin assets to interact with dApps on CKB. By using RGB++, CKB can execute more complex smart contracts for Bitcoin that were not possible with the original RGB protocol. RGB++ also introduces on-chain verification of key transaction elements, improving security and data availability. In addition, the RGB++ protocol enables transaction folding, ownerless contracts with shared state, and non-interactive transfers, and cross-chain transfers of Bitcoin without the need for a cross-chain bridge.

Payment Channels


As an underlying public chain, CKB can be extended through payment channels, such as Perun, a payment channel framework developed by Polycrypt. By processing transactions off-chain and settlement on-chain, these payment channels can support a variety of applications from small payments to payment gateways, thereby improving the performance of CKB. Perun leverages CKB's Cell model, where cells carry capacity, Lock Script, Type Script, and data to manage the state of the channel. One of the channel's implementations (PerunLockScript) can manage access rights to the channel's real-time Cell, while the other implementation (PerunTypeScript) can handle the verification logic of state transitions. These transitions are automatically managed from the channel being funded to being closed. As of press time, Perun is still in testing and has not yet been launched on the CKB mainnet. Nervos core developers are also working to connect CKB to Bitcoin's Lightning Network, enabling users to exchange BTC and CKB without relying on third parties.

Token Economics

Nervos Network’s native token CKByte (CKB) plays an important role in maintaining network security and incentivizing efficient storage. The main roles of CKB in the network include:

  • Granting token holders data storage rights.

  • As transaction fees on the chain.

  • Distributed to miners as block rewards to ensure network security.

In addition, CKB tokens have three sources: (1) Genesis block; (2) Basic issuance; (3) Secondary issuance.

Genesis Block

When the mainnet was launched in November 2019, 33.6 billion CKB tokens were minted in the genesis block, of which 8.4 billion CKB tokens (25% of the initial issuance) were immediately destroyed. Of the 8.4 billion CKB destroyed, 5.04 billion tokens were used for on-chain storage ("occupying on-chain space"), and the remaining 3.36 billion tokens were in a liquid state ("liquidity"). The purpose of assigning the corresponding status to these destroyed tokens is to allow miners to initially receive at least 15% of the secondary issuance and the treasury fund to receive at least 10%. It is worth noting that all CKB tokens currently allocated to the treasury fund have been destroyed, and this setting can only be changed through a network hard fork.

The CKB in the genesis block is distributed as follows:

  • Public Sale (~21.50%): The largest portion of the genesis block was provided to public sale investors in 2018 and all was released when the mainnet was launched in November 2019.

  • Ecosystem Fund (17.00%): The Ecosystem Fund will support third-party developers within the Nervos ecosystem. In the Genesis Block plan, 3% of this grant will be in place when the mainnet is launched, and the rest will be distributed over two years, ending in December 2022.

  • Team (15%): Reserved for the project team, with a four-year lock-up period ending in May 2022.

  • Private placement (14%): provided to private placement investors in July 2018. 66.60% of it was released at the launch of the mainnet, and the rest ended the two-year lock-up period in 2020.

  • Partners (5%): This grant is reserved for strategic partners who help build the Nervos Network and has a four-year lockup period.

  • Testnet Rewards (0.5%): These rewards are distributed in full to testnet and bug bounty program participants at mainnet launch.

  • Destruction (25%): In the genesis block, this portion is directly destroyed to ensure that miners and treasury funds continue to receive secondary issuance.


Basic Release

The goal of CKB base issuance (primary issuance) is to improve the security of the network in its early stages of development. The base issuance of CKB is fixed per Epoch and is awarded entirely to miners for processing transactions on the network. The base issuance is capped at 33.6 billion CKB tokens and follows a similar inflation schedule to Bitcoin, halving every four years until the supply cap is reached. In November 2023, CKB experienced its first halving event, with the base issuance dropping from 4.2 billion CKB per year to 2.1 billion.

Secondary issuance

CKB manages state explosion in two ways. First, to store data on-chain, users must lock CKB tokens. CKB does not directly charge users who lock CKB tokens to pay state rent, but indirectly charges fees through an inflation mechanism called secondary issuance. Every year, 1.344 billion CKB tokens are minted through secondary issuance and distributed to miners, Nervos DAO depositors, and the treasury fund. Therefore, secondary issuance introduces inflation for users who store data because locked CKB tokens automatically face value dilution, which is an indirect way to pay state rent. As of writing, more than 600 million CKB tokens have been distributed to miners as state rent, about 1.15 billion CKB tokens have been awarded to Nervos DAO depositors, and more than 4.27 billion CKB tokens allocated to the treasury fund have been directly destroyed.

DAO nerves

Through Nervos DAO, CKB token holders can natively avoid dilution from secondary issuance. By locking their CKB tokens into the Nervos DAO smart contract, users can receive token rewards from secondary issuance, ensuring that their tokens are protected from inflation. Nervos DAO depositors receive a yield that is the same as the inflation rate of secondary issuance, and the APR will continue to decrease as the total supply increases. Users can deposit into Nervos DAO at any time, with a minimum amount of 102 CKB, but withdrawals can only be made after the 30-day deposit period ends.

As of writing, 9.2 billion CKB tokens have been deposited in Nervos DAO. The deposit-to-flow ratio of CKB is 20.84%, which has been on a downward trend over the past two years. This downward trend may be due to the increasing number of unspent cells on CKB.

Networking activities

Over the past year, the CKB network has continued to be active. As of now, CKB's average daily transaction volume is 43,600. This is a 110% increase compared to the average daily transaction volume of 20,800 in the fourth quarter of 2023. In terms of new addresses, on-chain activity increased significantly in April. 387,600 new addresses were created in April, a month-on-month increase of 181% compared to March.

Cell activity on CKB has been steadily increasing since April, partly due to the launch of the RGB++ protocol. Cell activity is divided into unspent cells and spent cells. Unspent cells can be used for future transactions, smart contract execution, and data storage, reflecting the increase in network activity and adoption. Spent cells, while no longer used as transaction inputs, still contain valuable data that can be accessed and referenced, contributing to the history and data traceability of the blockchain. As of May 15, 2024, there were 1.7 million unspent cells, a 13% increase from the end of the first quarter. As for spent cells, there were 57.6 million spent cells on CKB at press time.

Over 13,200 transactions and 4,400 unique addresses have used the RGB++ protocol since it went live on April 3, 2024. Network activity has been on a downward trend throughout May and June, but more ecosystem projects leveraging RGB++ should help reverse that trend.

Security and decentralization

As a PoW network, miners secure CKB by solving cryptographic puzzles to verify transactions and add new blocks to the blockchain. For each block mined, miners receive the entire “base issuance” reward and a portion of the “secondary issuance” reward for that block. Miners can also receive proposal rewards or submission rewards from transaction fees for processing network transactions. To manage changes in network activity without degrading performance, CKB’s customized NC-MAX consensus protocol adjusts mining difficulty approximately every four hours based on the network’s orphan block rate. This allows the network to optimize block times while reducing the likelihood of block reorganizations, which can destabilize the network.

Hashrate is a measure of the basic computing power of miners on a PoW blockchain. Therefore, hashrate represents the security of the CKB network. In 2024, the CKB network hashrate continued to hit new all-time highs. On April 27, CKB's total network hashrate reached 397.5 PH/s, the highest hashrate value ever recorded on the CKB network. The rise in hashrate was partly due to Binance opening the CKB mining pool on April 18, 2024. Similar to hashrate, the average mining difficulty in 2024 also hit a record high (3.96E on April 21).

ecosystem

Nervos Network continues to foster ecosystem growth through funding, infrastructure, and tooling support. At the launch of the mainnet in November 2019, approximately 5.7 billion CKB (17% of the genesis block CKB allocation — $62.4 million at the time of writing) was set aside for the Eco Fund. Over the years, the Eco Fund has provided seed funding for multiple ecosystem development initiatives to drive the network's development plans. One of these is the CKB Eco Fund (formerly InNervation), which focuses on incubating and investing in early-stage and seed-stage projects that use RGB++ to connect CKB and Bitcoin. CKB Eco Fund supports ecosystem projects in building critical infrastructure and cross-domain decentralized applications, including DeFi, games, tools, NFT markets, and more. In January 2024, CKB Eco Fund launched the BTCKB initiative, which aims to strengthen the integration between Bitcoin and CKB blockchains through the PoW consensus mechanism and UTXO model. The BTCKB program will introduce new smart contract features to incorporate BTC, Taproot Assets, and RGB++ assets into the CKB blockchain, thereby enhancing the functionality of the Bitcoin blockchain. As part of the program, CKB Eco Fund has also incubated CELL Studio, a blockchain software company led by Nervos co-founder Cipher Wang, who is also the lead of the BTCKB program. CELL Studio develops infrastructure and applications to enhance and expand the Nervos ecosystem, similar to how ConsenSys develops foundational tools such as Infura and MetaMask for Ethereum. To date, well-known ecosystem tools developed by CELL studio include:

  • CoTA: Aggregation protocol for fungible and non-fungible tokens on CKB.

  • ForceBridge: A cross-chain interoperability protocol that connects CKB and other blockchain networks, currently supporting Ethereum and BNB Smart Chain.

  • Spore: A protocol for on-chain digital objects (DOBs) powered by CKB.

Since the launch of the RGB++ mainnet in April 2024, more than 15 existing ecosystem projects have used the protocol to issue assets. Ecosystem projects worth noting include:

  • UTXO Stack: Bitcoin L2 “OP Stack” based on the RGB++ protocol.

  • JoyID: A non-custodial wallet that leverages biometrics for user authentication and supports multiple networks including Ethereum, Bitcoin, and RGB++ assets.

  • HueHub: Decentralized exchange and launchpad supporting RGB++ assets on Bitcoin.

  • Stable++: A decentralized stablecoin protocol that supports CKB and BTC.

  • World3: An autonomous world game based on RGB++ protocol and DOB.

  • Nervape: A multi-chain composable digital object based on Bitcoin, whose “base assets” are issued on Bitcoin and “subordinate assets” are issued on CKB.

  • Haste: RGB++ asset management solution.

  • d.id: A decentralized identity protocol for the Bitcoin ecosystem.

The RGB++ development roadmap released by CELL Studio highlights the important plans to be completed in 2024, including:

  • Release a cross-chain protocol for issuing RGB++ assets across UTXO chains.

  • Bridge-less cross-chain of Atomicals, Orderals, and other UTXO-based assets to CKB via the RGB++ protocol.

  • Propose and implement a multi-network-supported RGB++ extension solution.

  • Connect RGB++ with CKB Lightning Network.

As part of the BTCKB plan, CKB Eco Fund also intends to launch a cross-chain bridge connecting BTC and CKB and a UTXO-based DEX. In addition, a payment channel network will be developed for CKB using the RGB++ protocol, and the relevant proof of concept has been completed. This payment channel network will be connected to the Lightning Network, making CKB more scalable and suitable for various blockchain applications.

Competitive product analysis

As Bitcoin L2, Nervos Network's approach to extending Bitcoin is primarily to enhance Bitcoin's functionality through the RGB++ protocol. Competitors like Stacks provide custom execution environments and programming languages, while Rootstock hooks transactions between the two chains. In contrast, Nervos aims to enhance the native Bitcoin experience without adding complexity or compromising decentralization. With the RGB++ protocol, CKB can provide Bitcoin with the same native Bitcoin experience as Bitcoin.#UTXO The Nervos Network is a smart contract execution environment that is tightly coupled to the Bitcoin model. This design could give the Nervos Network an advantage by attracting users who are skeptical of solutions that stray from Bitcoin’s core ideals of decentralization and security.

Compared to scaling solutions like the Lightning Network, CKB’s smart contracts offer a wider range of functionality, serving developers building more complex applications on Bitcoin. While the Lightning Network is effective in facilitating fast, low-cost transactions, it does not support complex decentralized applications. Meanwhile, platforms like Liquid Network, Merlin Chain, and Bouncebit require trust in a semi-centralized consortium to manage the cross-chain bridge between the sidechain and the Bitcoin mainnet. CKB avoids this level of centralization by using an off-chain computation and on-chain settlement approach.

Still, Nervos’ approach to scaling Bitcoin with the RGB++ protocol is not without limitations. The reliance on external networks (particularly the CKB blockchain) for data availability and asset issuance introduces additional complexity and potential delays to Bitcoin. Additionally, the lack of comprehensive development tooling and multi-party interaction solutions limits the protocol’s ability to effectively support decentralized applications. Finally, the transparent nature of transactions on the CKB blockchain undermines the privacy benefits that the RGB protocol originally provided.

Summarize


The Bitcoin L2 market continues to develop as demand for scalability and functionality beyond Bitcoin's original functionality continues to grow. Various L2 solutions, such as Lightning Network, Sidechains, and Rollups, aim to address these issues by moving transactions off the main chain, thereby increasing Bitcoin's throughput without compromising security. However, these solutions often introduce new complexities and security challenges. What makes Nervos different is the extension of the RGB protocol through RGB++. RGB++ provides native extensions to Bitcoin, integrating deeper smart contract functionality that is directly related to Bitcoin's UTXO model. These features, in turn, facilitate a more seamless and secure expansion of Bitcoin's utility. In addition, work is underway to connect the Payment Channel Network with the Lightning Network, which will make CKB more scalable and suitable for many blockchain applications.

Ultimately, Nervos aims to strengthen its position in the Bitcoin L2 space by simplifying the user and developer experience. In addition, Nervos can also prioritize RGB++ support for a wider range of asset types and complex applications, thereby increasing its utility in the Bitcoin ecosystem. By doing so, Nervos can play a key role in the broader adoption and functionality of Bitcoin as a decentralized application and smart contract platform.