📝 Encoding Tools
Baid64 ids in the formats of both RGB lines (rgb: for v0.11, contract: for v0.12), tagged SHA-256, and an invoice parser.
Baid64 encoder and decoder
A port of the baid64 crate 0.4.x used by both RGB lines: Base64 with the alphabet A–Z a–z 0–9 _ ~, an optional prefix, - chunks (8 characters, then 7), and a 4-byte checksum h[0] h[1] h[1] h[2] of h = SHA-256(SHA-256(prefix) ‖ payload), embedded or shown as three words after #. See Encoding formats.
rgb:Ca0d5l5K-Cr4Wm6I-owUkn6t-2NHrgjk-R1KRreF-tVBhAR0rgb:Ca0d5l5K-Cr4Wm6I-owUkn6t-2NHrgjk-R1KRreF-tVBhAR0contract:Ca0d5l5K-Cr4Wm6I-owUkn6t-2NHrgjk-R1KRreF-tVBhAR0Ca0d5l5KCr4Wm6IowUkn6t2NHrgjkR1KRreFtVBhAR0=Why Use the Playground?
Learn by Doing
Decode real ids and invoices from both RGB lines and see how their parts fit together.
100% Client-Side
All processing happens in your browser. Your data is never sent to any server.
Instant Feedback
See results immediately as you type. No waiting, no setup, no compilation.
Checked against the real code
The Baid64 and tagged-hash tools are ports of the baid64 0.4.x and commit_verify code, and reproduce real ids from rgb-cmd 0.11.1 and rgb-wallet 0.12.0-rc.3. The contract builder and the consignment diagram are illustrative only.