Skip to content

RGB++

RGB++ is a new protocol based on Bitcoin's UTXO model, combining client-side validation and homomorphic binding technology, designed to introduce richer smart contract functionality and asset issuance capabilities to the Bitcoin ecosystem. It was proposed by the Nervos CKB team and is an extension and optimization of the RGB protocol.

Problem Statement

Bitcoin, as the most decentralized and secure blockchain, has a scripting language with limited expressiveness that cannot directly support complex smart contracts and asset issuance. Existing Layer 2 solutions, such as the Lightning Network, primarily focus on payment scaling, while asset issuance and complex state management remain challenges. RGB++ aims to address:

  1. Bitcoin's Smart Contract Limitations: How to implement Turing-complete smart contract capabilities similar to Ethereum on Bitcoin without modifying Bitcoin's underlying protocol.
  2. Asset Issuance and Management: Provide a secure, efficient, and scalable asset issuance standard that is deeply bound to Bitcoin's security.
  3. Interoperability and Security: Ensure that the new protocol maintains a high degree of security association with the Bitcoin main chain while expanding functionality and enabling asset interoperability with the Bitcoin ecosystem.

Implementation Mechanisms and Principles

The core concepts of RGB++ are "Homomorphic Binding" and "Client-Side Validation."

Client-Side Validation

Similar to the RGB protocol, RGB++ adopts a client-side validation model. This means that protocol-related state and transaction data are mostly not stored on the Bitcoin chain but are maintained and verified off-chain by participants. The Bitcoin chain serves only as a global ordering layer and "Single-Use-Seals" commitment layer. * Users need to maintain historical transaction data related to their own assets (called the "ownership chain" or "state commitment chain") and verify its completeness and validity when receiving assets. * Off-chain states are anchored and locked through Bitcoin UTXOs. Every RGB++ asset transaction records asset state change hash values in the form of Commitments through the OP_RETURN output of a Bitcoin transaction on the Bitcoin chain.

Homomorphic Binding

This is the primary innovation of RGB++ compared to native RGB. RGB++ leverages the UTXO model of the Nervos CKB chain, which is similar to Bitcoin's, along with its unique Cell model. * When a Bitcoin UTXO carries an RGB++ asset, it can be "mapped" to a Cell on CKB. This CKB Cell is "homomorphically bound" to the corresponding Bitcoin UTXO. * Complex state transitions (such as smart contract execution or complex conditional logic) for assets can be executed on the CKB chain, taking advantage of CKB's Turing-complete capability and high performance. * When assets need to be bridged back from CKB to the Bitcoin network, the UTXO structure of CKB is mapped to Bitcoin's UTXO structure to ensure asset uniqueness and atomicity. * This binding mechanism ensures that state changes in a Bitcoin UTXO (spending or re-locking) automatically trigger state changes in the corresponding CKB Cell, and vice versa, achieving strong consistency of assets and state between the two chains.

Key Features

  • Bitcoin Security Inheritance: The ultimate security of RGB++ assets inherits from Bitcoin UTXO security - as long as the Bitcoin UTXO is not double-spent, the corresponding RGB++ assets cannot be double-spent.
  • Turing-Complete Smart Contracts: Through homomorphic binding with CKB, complex computations are transferred to the CKB chain, enabling Turing-complete smart contract capabilities for the Bitcoin ecosystem.
  • Privacy: The client-side validation model means transaction details are only visible to participants, improving privacy protection.
  • High Scalability: Most data and computation occurs off-chain or on the CKB chain, greatly reducing the burden on Bitcoin's main chain.
  • No Cross-Chain Bridge Risk: Asset transfers between BTC and CKB do not carry the traditional cross-chain bridge centralization risk; instead, atomic swaps are achieved through UTXO homomorphic binding.
  • UTXO Model
  • Client-Side Validation
  • Single-Use-Seals
  • Nervos CKB
  • RGB Protocol