Home/Introduction

Introduction

Learn about RGB++ Protocol, the revolutionary technology that bridges Bitcoin's security with CKB's programmability through isomorphic binding.

What is RGB++?

The RGB++ Protocol is a simple protocol that enhances Bitcoin Layer 1 programmability by establishing a binding between Bitcoin UTXOs and Turing-complete CKB Scripts. This binding creates a powerful bridge between Bitcoin's security and CKB's programmability.

At its core, RGB++ Protocol uses a specific Bitcoin UTXO as a single-use seal - a cryptographic commitment that can only be used once, leveraging Bitcoin's inherent UTXO properties. This UTXO, along with its corresponding CKB cells, serves as the cryptographic proof, or the commitment, of ownership for RGB++ assets.

Key Innovation

When a single-use seal is consumed, the ownership of the RGB++ asset is guaranteed to be transferred to the new UTXO or the wallet controlling it, ensuring cryptographic security.

The protocol employs CKB Cells to represent RGB++ asset ownership relationships, establishing an isomorphic binding with Bitcoin UTXOs. In this architecture, CKB serves dual roles: as a public database for assets and as an off-chain pre-settlement layer.

RGB++ Protocol bridges Bitcoin's security with CKB's programmability, enabling sophisticated applications directly on Bitcoin. Developers can now create advanced smart contracts that power decentralized applications, from IDO platforms to liquid staking pools, and more.

Architecture Overview

Bitcoin Layer
  • • UTXO management and single-use seals
  • • Cryptographic commitments via OP_RETURN
  • • Asset ownership representation
  • • Cross-chain transaction initiation
CKB Layer
  • • Programmable scripts and smart contracts
  • • Asset state management and validation
  • • Public database for RGB++ assets
  • • Off-chain pre-settlement layer

Blockchain-Enhanced State Validation

The concept of creating and managing assets on Bitcoin has been a long-standing pursuit in the cryptocurrency space. While Bitcoin's UTXO model provides a robust foundation for value transfer, its intentionally limited scripting system falls short in implementing the sophisticated security validations required for complex asset management.

Traditional RGB Approach
  • • Client-side validation
  • • Complex transaction history maintenance
  • • Difficulty providing transaction proofs
  • • Resource-intensive for simple clients
RGB++ Innovation
  • • On-chain security checks via CKB
  • • Straightforward verification process
  • • System transparency maintained
  • • Reduced burden on end users

Enhanced Security Model

RGB++ leverages CKB's Turing-complete script system to implement asset security checks. Users only need to verify relevant transactions on CKB to confirm the correctness of RGB++ transaction state calculations, significantly reducing complexity.

Typical Transaction Flow

Each RGB++ transaction generates a pair of corresponding transactions: one on Bitcoin and one on CKB. This dual-chain approach ensures both security and programmability.

Step 1
Off-chain Pre-computation

Calculate commitment using CKB transaction, Bitcoin UTXOs, and placeholder values

Step 2
Bitcoin Transaction

Submit Bitcoin transaction with OP_RETURN commitment and create new UTXO

Step 3
CKB Transaction

Submit CKB transaction with RGB++ asset state recorded in output data

Step 4
On-chain Verification

Validate UTXO spending, Bitcoin transaction existence, and state transitions

Isomorphic Binding

The commitment formula: commitment = hash(CKB_TX_B | btc_utxo#1 | btc_utxo#2)
This establishes a secure binding between Bitcoin UTXOs and CKB cells through RGB++ Script arguments.

Key Features

Single-Use Seals

Bitcoin UTXOs serve as cryptographic commitments that can only be used once, ensuring asset uniqueness and preventing double-spending.

Isomorphic Binding

One-to-one mapping mechanism linking Bitcoin UTXOs to CKB Cells, enabling ownership synchronization.

Turing-Complete Scripts

Leverage CKB's RISC-V based virtual machine for sophisticated smart contract logic.

Cross-Chain Assets

Seamless asset transfers and state management between Bitcoin and CKB networks.

SPV Verification

Bitcoin light client implementation on CKB enables secure transaction verification.

Enhanced Validation

Blockchain-enhanced state validation that maintains privacy while ensuring security.

Why RGB++?

RGB++ Protocol addresses the fundamental limitations of Bitcoin's scripting system while maintaining its security guarantees. By leveraging CKB's programmability, RGB++ enables sophisticated applications that were previously impossible on Bitcoin.

Advantages over Traditional Approaches

  • Decentralized Authentication without centralized entities
  • Robust P2P Network infrastructure
  • Mature Virtual Machines and Contract Languages
  • Efficient Shared States and Hosted Contracts

Technical Innovation

RGB++ takes a different approach by leveraging CKB's Turing-complete script system to implement asset security checks. This design offers a more straightforward and accessible verification process for all users while maintaining system transparency.

Ready to Get Started?

Now that you understand what RGB++ is and how it works, explore the ecosystem and start building with Bitcoin's programmable layer.