RGB++ SDK

A comprehensive SDK for RGB++ asset operations that manages assets on both BTC and CKB chains, providing wallet functionality and signature verification within the RGB++ protocol semantics.

RGB++ SDK Overview

At its core, the RGB++ SDK is focused on verifying and recording RGB++ asset ownership. In a regular BTC transaction, once the transaction is signed with a private key and broadcast to the network, it is considered complete after being validated and confirmed by most BTC nodes.

However, with RGB++'s isomorphic binding, the consumption and generation of bound UTXOs and CKB Cells must maintain atomicity. It relies on btc-assets-api and SPV Service to faithfully synchronize RGB++ asset transaction information from BTC to CKB, while recording the resulting ownership changes in CKB Cells. That's where the RGB++ SDK comes in.

The SDK simplifies development by providing core functionalities such as transaction assembly, signing, and submission. It handles the construction of both Bitcoin and CKB transactions, manages cryptographic signing across both chains, and coordinates the final submission to the respective networks.

Core Functions

Wallet Functionality

The RGB++ SDK can be understood as a wallet operating within the RGB++ protocol semantics, capable of managing assets on both BTC and CKB chains, thereby facilitating RGB++ asset operations.

Dual-Chain Management

BTC

Manages Bitcoin UTXOs and transactions

CKB

Manages CKB Cells and asset states

Signature Verification

Beyond basic BTC/CKB private key signature verification, the RGB++ SDK extends the signature verification process for RGB++ assets from the BTC chain to the CKB chain through the SPV Service and RGB++ contracts.

Extended Verification

1

Standard BTC/CKB private key verification

2

RGB++ asset signature verification via SPV

3

Cross-chain commitment validation

Available SDKs

Primary SDK (Recommended)
Actively Developed

The actively developed and recommended RGB++ SDK, integrated with the ccc (CKBers' Codebase) library for enhanced functionality and performance.

Legacy SDK
Continuously Maintained

The original RGB++ SDK that continues to be maintained for backward compatibility and existing projects.

Usage Scenarios

The RGB++ SDK serves multiple roles in the RGB++ ecosystem, providing essential functionality for various use cases.

Developer Integration

DApp development and integration

Custom wallet implementations

Exchange and service integrations

Asset Operations

RGB++ asset issuance and management

Cross-chain asset transfers

Asset verification and validation