#smart-contracts #lnp-bp #bitcoin

bin+lib rgb-schemata

Collection of the official RGB smart contract schemata

17 releases

0.11.1-alpha.2+unreviewed May 1, 2025
0.11.1-alpha.1 Feb 21, 2025
0.11.0-beta.9 Nov 19, 2024
0.11.0-beta.6 Jun 8, 2024
0.10.0-rc.3 Jul 27, 2023

#16 in #lnp-bp

Download history 36/week @ 2025-03-18 41/week @ 2025-03-25 70/week @ 2025-04-01 46/week @ 2025-04-08 17/week @ 2025-04-15 31/week @ 2025-04-22 122/week @ 2025-04-29 41/week @ 2025-05-06 93/week @ 2025-05-13 37/week @ 2025-05-20 178/week @ 2025-05-27 78/week @ 2025-06-03 81/week @ 2025-06-10 32/week @ 2025-06-17 46/week @ 2025-06-24 25/week @ 2025-07-01

192 downloads per month
Used in rgb-lib

Apache-2.0

76KB
1K SLoC

Collection of official RGB schemata

Build Tests Lints

crates.io Docs Apache-2 licensed

This repository provides rust source code and compiled versions of RGB contract schemata recommended for the use by contract developers.

RGB is confidential & scalable client-validated smart contracts for Bitcoin & Lightning. To learn more about RGB please check RGB blueprint and RGB FAQ websites.

The development of the project is supported and managed by LNP/BP Standards Association.

Catalog

This repository provides the following RGB schemata:

  • Non-inflatable assets (NIA). This is the simplest form of a fungible asset/token, which doesn't provide such features as secondary issue, ability to change asset name and parameters, ability to burn or replace the asset.

  • Unique digital asset (UDA). This is the simplest form of an NFT, which has one issuance of a single non-fungible and non-fractionable token with a representative attached media file and a preview.

  • Collectible fungible assets (CFA). This is the simplest form of collectible fungible assets

Library

The library can be integrated into other rust projects via Cargo.toml [dependecies] section:

rgb-schemata = "0.10.0"

MSRV

Minimum supported rust compiler version (MSRV): 1.66, rust 2021 edition.

License

See LICENCE file.

Dependencies

~15MB
~252K SLoC