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.
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
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
Manages Bitcoin UTXOs and transactions
Manages CKB Cells and asset states
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
Standard BTC/CKB private key verification
RGB++ asset signature verification via SPV
Cross-chain commitment validation
Available SDKs
The actively developed and recommended RGB++ SDK, integrated with the ccc (CKBers' Codebase) library for enhanced functionality and performance.
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